projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6788863
)
wil6210: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
author
Minghao Chi
<chi.minghao@zte.com.cn>
Mon, 11 Apr 2022 01:36:02 +0000
(
01:36
+0000)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Sat, 23 Apr 2022 09:31:48 +0000
(12:31 +0300)
Using pm_runtime_resume_and_get() is more appropriate
for simplifing code.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link:
https://lore.kernel.org/r/20220411013602.2517086-1-chi.minghao@zte.com.cn
drivers/net/wireless/ath/wil6210/pm.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/wil6210/pm.c
b/drivers/net/wireless/ath/wil6210/pm.c
index ed4df561e5c50b1b27ce5a1c9c5cc9e950e6b2df..f521af575e9ba1250db39457aaf8b7d8c253bfd4 100644
(file)
--- a/
drivers/net/wireless/ath/wil6210/pm.c
+++ b/
drivers/net/wireless/ath/wil6210/pm.c
@@
-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;
}