From: Arjun Sreedharan Date: Thu, 20 Nov 2014 15:53:36 +0000 (+0530) Subject: usb: phy: propagate __of_usb_find_phy()'s error on failure X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1290a958d48e30d60262a33acb5f068e87834ce4;p=pandora-kernel.git usb: phy: propagate __of_usb_find_phy()'s error on failure When __of_usb_find_phy() fails, it returns -ENODEV - its error code has to be returned by devm_usb_get_phy_by_phandle(). Only when the former function succeeds and try_module_get() fails should -EPROBE_DEFER be returned. [ balbi@ti.com : remove trailing whitespace ] Signed-off-by: Arjun Sreedharan Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed