UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 1 Mar 2016 04:00:05 +0000 (12:00 +0800)
commit95154ee3e223c71c10644657ce484479e98807d7
tree6328cbc53cad7af445121aa2680f0b5da54e4a73
parentc2bdb4abe861b4406214f62bd406d88b16bd862b
UPSTREAM: phy: core: fix wrong err handle for phy_power_on

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>
(cherry picked from commit b82fcabe212a11698fd4b3e604d2f81d929d22f6)

Change-Id: I1cb5327d624d88a97096eccaa94924b851dcce27
drivers/phy/phy-core.c