projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b7ef9
)
nvmem: qfprom: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Minghao Chi
<chi.minghao@zte.com.cn>
Fri, 29 Apr 2022 16:26:54 +0000
(17:26 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 9 May 2022 13:45:39 +0000
(15:45 +0200)
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: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link:
https://lore.kernel.org/r/20220429162701.2222-10-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/qfprom.c
patch
|
blob
|
history
diff --git
a/drivers/nvmem/qfprom.c
b/drivers/nvmem/qfprom.c
index 162132c7dab93255664262d4139beffa6390faf1..c1e893c8a2478df4c53e6c7498fda324631b6769 100644
(file)
--- a/
drivers/nvmem/qfprom.c
+++ b/
drivers/nvmem/qfprom.c
@@
-217,9
+217,8
@@
static int qfprom_enable_fuse_blowing(const struct qfprom_priv *priv,
goto err_clk_rate_set;
}
- ret = pm_runtime_
get_sync
(priv->dev);
+ ret = pm_runtime_
resume_and_get
(priv->dev);
if (ret < 0) {
- pm_runtime_put_noidle(priv->dev);
dev_err(priv->dev, "Failed to enable power-domain\n");
goto err_reg_enable;
}