]> git.karo-electronics.de Git - linux-beck.git/commit
usb: phy: propagate __of_usb_find_phy()'s error on failure
authorArjun Sreedharan <arjun024@gmail.com>
Thu, 20 Nov 2014 15:53:36 +0000 (21:23 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 20 Nov 2014 19:43:22 +0000 (13:43 -0600)
commit1290a958d48e30d60262a33acb5f068e87834ce4
tree19b4ca45f7f83363fbb6761dd861adc950a94ec2
parent62c606978aa028260f88d0dcb9834bbb7a42b048
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 <arjun024@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy.c