OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c9cb6
)
spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe
author
Miaoqian Lin
<linmq006@gmail.com>
Fri, 7 Jan 2022 07:54:24 +0000
(07:54 +0000)
committer
Mark Brown
<broonie@kernel.org>
Fri, 7 Jan 2022 13:36:38 +0000
(13:36 +0000)
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().
Add missing pm_runtime_disable() for meson_spifc_probe.
Fixes:
c3e4bc5434d2
("spi: meson: Add support for Amlogic Meson SPIFC")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link:
https://lore.kernel.org/r/20220107075424.7774-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spifc.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-meson-spifc.c
b/drivers/spi/spi-meson-spifc.c
index
8eca6f2
..
c8ed781
100644
(file)
--- a/
drivers/spi/spi-meson-spifc.c
+++ b/
drivers/spi/spi-meson-spifc.c
@@
-349,6
+349,7
@@
static int meson_spifc_probe(struct platform_device *pdev)
return 0;
out_clk:
clk_disable_unprepare(spifc->clk);
+ pm_runtime_disable(spifc->dev);
out_err:
spi_master_put(master);
return ret;