Commit 69c1b875 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Mark Brown

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: c3e4bc54 ("spi: meson: Add support for Amlogic Meson SPIFC")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220107075424.7774-1-linmq006@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c8c9cb6d
...@@ -349,6 +349,7 @@ static int meson_spifc_probe(struct platform_device *pdev) ...@@ -349,6 +349,7 @@ static int meson_spifc_probe(struct platform_device *pdev)
return 0; return 0;
out_clk: out_clk:
clk_disable_unprepare(spifc->clk); clk_disable_unprepare(spifc->clk);
pm_runtime_disable(spifc->dev);
out_err: out_err:
spi_master_put(master); spi_master_put(master);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment