summaryrefslogtreecommitdiff
path: root/drivers/phy/ti/phy-am654-serdes.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-03-01 05:58:49 +0300
committerVinod Koul <vkoul@kernel.org>2022-04-14 08:08:58 +0300
commitce88613e5bd579478653a028291098143f2a5bdf (patch)
tree9aa6e961fe756c16895d6755daebe010b4a46baa /drivers/phy/ti/phy-am654-serdes.c
parentd644e0d79829b1b9a14beedbdb0dc1256fc3677d (diff)
downloadlinux-ce88613e5bd579478653a028291098143f2a5bdf.tar.xz
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: 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>
Diffstat (limited to 'drivers/phy/ti/phy-am654-serdes.c')
-rw-r--r--drivers/phy/ti/phy-am654-serdes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/ti/phy-am654-serdes.c b/drivers/phy/ti/phy-am654-serdes.c
index c1211c4f863c..0be727bb9f79 100644
--- a/drivers/phy/ti/phy-am654-serdes.c
+++ b/drivers/phy/ti/phy-am654-serdes.c
@@ -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;
}