mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
wil6210: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
Using pm_runtime_resume_and_get() is more appropriate for simplifing code. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
1 parent
67888630ad
commit
45286070e9
1 file changed
+2
-3
@@ -445,10 +445,9 @@ int wil_pm_runtime_get(struct wil6210_priv *wil)
|
||||
int rc;
|
||||
struct device *dev = wil_to_dev(wil);
|
||||
|
||||
rc = pm_runtime_get_sync(dev);
|
||||
rc = pm_runtime_resume_and_get(dev);
|
||||
if (rc < 0) {
|
||||
wil_err(wil, "pm_runtime_get_sync() failed, rc = %d\n", rc);
|
||||
pm_runtime_put_noidle(dev);
|
||||
wil_err(wil, "pm_runtime_resume_and_get() failed, rc = %d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user