From: Axel Lin Date: Fri, 6 Mar 2015 07:55:10 +0000 (+0800) Subject: phy: core: Fixup return value of phy_exit when !pm_runtime_enabled X-Git-Tag: omap-for-v4.2/o2_dc~276^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=736b67a32062240592aad49033859f9712dd18ca;p=pandora-kernel.git 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 Acked-by: Roger Quadros Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed