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:
04e0456
)
spi: img-spfi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Zhang Qilong
<zhangqilong3@huawei.com>
Thu, 22 Sep 2022 15:02:32 +0000
(23:02 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 23 Sep 2022 17:21:48 +0000
(18:21 +0100)
Using the newest pm_runtime_resume_and_get is more appropriate
for simplifing code here.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link:
https://lore.kernel.org/r/20220922150232.115843-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-img-spfi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-img-spfi.c
b/drivers/spi/spi-img-spfi.c
index 71376b6df89dbb279dd7f5dda18ed41f305b9155..bfd12247f17344d9cd9c7f0e6dae4408c8baf35b 100644
(file)
--- a/
drivers/spi/spi-img-spfi.c
+++ b/
drivers/spi/spi-img-spfi.c
@@
-730,11
+730,9
@@
static int img_spfi_resume(struct device *dev)
struct img_spfi *spfi = spi_master_get_devdata(master);
int ret;
- ret = pm_runtime_get_sync(dev);
- if (ret < 0) {
- pm_runtime_put_noidle(dev);
+ ret = pm_runtime_resume_and_get(dev);
+ if (ret < 0)
return ret;
- }
spfi_reset(spfi);
pm_runtime_put(dev);