summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-meson-spifc.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-01-07 08:54:24 +0100
committerMark Brown <broonie@kernel.org>2022-01-07 14:36:38 +0100
commit69c1b87516e327a60b39f96b778fe683259408bf (patch)
tree4c49d8dc147e118cd66e7fb15222b73cd4957aee /drivers/spi/spi-meson-spifc.c
parentspi: atmel: Fix typo (diff)
downloadlinux-69c1b87516e327a60b39f96b778fe683259408bf.tar.xz
linux-69c1b87516e327a60b39f96b778fe683259408bf.zip
spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe
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>
Diffstat (limited to 'drivers/spi/spi-meson-spifc.c')
-rw-r--r--drivers/spi/spi-meson-spifc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c
index 8eca6f24cb79..c8ed7815c4ba 100644
--- 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;