Skip to content

Commit

Permalink
phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe
Browse files Browse the repository at this point in the history
[ Upstream commit ce88613 ]

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 <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220301025853.1911-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Yuuoniy authored and gregkh committed May 9, 2022
1 parent cf6f119 commit 344558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/ti/phy-am654-serdes.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 344558d

Please sign in to comment.