aboutsummaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorArjun Sreedharan <[email protected]>2014-11-20 21:23:36 +0530
committerFelipe Balbi <[email protected]>2014-11-20 13:43:22 -0600
commit1290a958d48e30d60262a33acb5f068e87834ce4 (patch)
tree19b4ca45f7f83363fbb6761dd861adc950a94ec2 /lib/pm-notifier-error-inject.c
parent62c606978aa028260f88d0dcb9834bbb7a42b048 (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. [ [email protected] : remove trailing whitespace ] Signed-off-by: Arjun Sreedharan <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions