phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 1 Mar 2022 02:58:49 +0000 (02:58 +0000)
committerVinod Koul <vkoul@kernel.org>
Thu, 14 Apr 2022 05:08:58 +0000 (10:38 +0530)
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: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220301025853.1911-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-am654-serdes.c

index c1211c4f863cadf650d838b4d7ec9997594cdee2..0be727bb9f79245f643ac90fab13494c4ca6299d 100644 (file)
@@ -838,7 +838,7 @@ static int serdes_am654_probe(struct platform_device *pdev)
 
 clk_err:
        of_clk_del_provider(node);
-
+       pm_runtime_disable(dev);
        return ret;
 }