Skip to content

Commit 69c1b87

Browse files
Yuuoniybroonie
authored andcommitted
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: c3e4bc5 ("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>
1 parent c8c9cb6 commit 69c1b87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/spi/spi-meson-spifc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ static int meson_spifc_probe(struct platform_device *pdev)
349349
return 0;
350350
out_clk:
351351
clk_disable_unprepare(spifc->clk);
352+
pm_runtime_disable(spifc->dev);
352353
out_err:
353354
spi_master_put(master);
354355
return ret;

0 commit comments

Comments
 (0)