]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: core: fix wrong err handle for phy_power_on
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 28 Jan 2016 08:14:18 +0000 (16:14 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:40 +0000 (10:25 -0500)
commit7822d8eb3551dce8f0e594807d030cf8be342540
tree09811d98428c5fc8cf26b46e8b19178013b6ace0
parent68fce03ba7901aa338a566292a59e6a753948861
phy: core: fix wrong err handle for phy_power_on

[ Upstream commit b82fcabe212a11698fd4b3e604d2f81d929d22f6 ]

If phy_pm_runtime_get_sync failed but we already
enable regulator, current code return directly without
doing regulator_disable. This patch fix this problem
and cleanup err handle of phy_power_on to be more readable.

Fixes: 3be88125d85d ("phy: core: Support regulator ...")
Cc: <stable@vger.kernel.org> # v3.18+
Cc: Roger Quadros <rogerq@ti.com>
Cc: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/phy/phy-core.c