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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:33 +0000 (09:14 +0200)
commit344558d201bb4b277b2153aa588512b0c6b750c9
treed5e1bbb4dff79d215bca679ab2f457570addccf0
parentcf6f119f8244504934df4f482bf70e9cbc81a45b
phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe

[ Upstream commit ce88613e5bd579478653a028291098143f2a5bdf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/ti/phy-am654-serdes.c