Skip to content

Commit b8659ad

Browse files
shawn1221broonie
authored andcommitted
spi: rockchip: disable runtime pm when in err case
Before registering master, driver enables runtime pm. This patch pm_runtime_disable in err case while probing driver to balance pm reference count. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 92e963f commit b8659ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-rockchip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
749749
return 0;
750750

751751
err_register_master:
752+
pm_runtime_disable(&pdev->dev);
752753
if (rs->dma_tx.ch)
753754
dma_release_channel(rs->dma_tx.ch);
754755
if (rs->dma_rx.ch)

0 commit comments

Comments
 (0)