mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
UPSTREAM: 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.
Change-Id: I63688e1b07b0b157a663f67e50ac74c5273ce353
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from git.kernel.org next/linux-next.git master
commit b8659adda9)
This commit is contained in:
@@ -754,6 +754,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
|
||||
err_register_master:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
if (rs->dma_tx.ch)
|
||||
dma_release_channel(rs->dma_tx.ch);
|
||||
if (rs->dma_rx.ch)
|
||||
|
||||
Reference in New Issue
Block a user