commit | 1290a958d48e30d60262a33acb5f068e87834ce4 | [log] [tgz] |
---|---|---|
author | Arjun Sreedharan <arjun024@gmail.com> | Thu Nov 20 21:23:36 2014 +0530 |
committer | Felipe Balbi <balbi@ti.com> | Thu Nov 20 13:43:22 2014 -0600 |
tree | 19b4ca45f7f83363fbb6761dd861adc950a94ec2 | |
parent | 62c606978aa028260f88d0dcb9834bbb7a42b048 [diff] |
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>