Skip to content

Commit ce88613

Browse files
Yuuoniyvinodkoul
authored andcommitted
phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe
The pm_runtime_enable() will increase power disable depth. If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Add missing pm_runtime_disable() for serdes_am654_probe(). Fixes: 71e2f5c ("phy: ti: Add a new SERDES driver for TI's AM654x SoC") Signed-off-by: Miaoqian Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent d644e0d commit ce88613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ti/phy-am654-serdes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ static int serdes_am654_probe(struct platform_device *pdev)
838838

839839
clk_err:
840840
of_clk_del_provider(node);
841-
841+
pm_runtime_disable(dev);
842842
return ret;
843843
}
844844

0 commit comments

Comments
 (0)