From: Axel Lin Date: Tue, 7 Apr 2015 23:30:15 +0000 (+0800) Subject: phy: core: Fix error checking in (devm_)phy_optional_get X-Git-Tag: omap-for-v4.3/legacy-v2-signed~253^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83be4c3f69762e1fc736e375b04e5c22b3ddceb;p=pandora-kernel.git phy: core: Fix error checking in (devm_)phy_optional_get Don't pass valid pointer to PTR_ERR, use PTR_ERR(phy) only when IS_ERR(phy) is true. Signed-off-by: Axel Lin Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed