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:
58b1efe
)
spi: spi-ti-qspi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
author
Minghao Chi
<chi.minghao@zte.com.cn>
Fri, 8 Apr 2022 08:09:31 +0000
(08:09 +0000)
committer
Mark Brown
<broonie@kernel.org>
Tue, 19 Apr 2022 12:13:45 +0000
(13:13 +0100)
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>
Link:
https://lore.kernel.org/r/20220408080931.2494356-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-ti-qspi.c
b/drivers/spi/spi-ti-qspi.c
index
081da1f
..
b5b65d8
100644
(file)
--- a/
drivers/spi/spi-ti-qspi.c
+++ b/
drivers/spi/spi-ti-qspi.c
@@
-172,9
+172,8
@@
static int ti_qspi_setup(struct spi_device *spi)
dev_dbg(qspi->dev, "hz: %d, clock divider %d\n",
qspi->spi_max_frequency, clk_div);
- ret = pm_runtime_
get_sync
(qspi->dev);
+ ret = pm_runtime_
resume_and_get
(qspi->dev);
if (ret < 0) {
- pm_runtime_put_noidle(qspi->dev);
dev_err(qspi->dev, "pm_runtime_get_sync() failed\n");
return ret;
}