commit | 736b67a32062240592aad49033859f9712dd18ca | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Fri Mar 06 15:55:10 2015 +0800 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Fri Mar 13 17:14:38 2015 +0530 |
tree | e36f4f7794a6f770e18b0f49f0846884993185fb | |
parent | 018e6ff3c09f32b8743e06870c4dd6ed9a0b7ff5 [diff] |
phy: core: Fixup return value of phy_exit when !pm_runtime_enabled When phy_pm_runtime_get_sync() returns -ENOTSUPP, phy_exit() also returns -ENOTSUPP if !phy->ops->exit. Fix it. Also move the code to override ret close to the code we got ret. I think it is less error prone this way. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>