diff options
author | Felipe Balbi <balbi@ti.com> | 2013-03-14 15:59:06 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 09:18:26 (GMT) |
commit | b7fa5c2aec5be083eb2719b405089703608e9bc6 (patch) | |
tree | 9a25ce9c81a5f5ec974ffd69482a98dca4694637 /drivers | |
parent | 3bf6db9bbe4ad7b08b714c1857a703c1ef1b1e83 (diff) | |
download | linux-fsl-qoriq-b7fa5c2aec5be083eb2719b405089703608e9bc6.tar.xz |
usb: phy: return -ENXIO when PHY layer isn't enabled
in cases where PHY layer isn't enabled, we want
to still return an error code (actually an error
pointer) so that our users don't need to cope with
either error pointer of NULL.
This will simplify users as below:
- return IS_ERR(phy) ? PTR_ERR(phy) : -ENODEV;
+ return PTR_ERR(phy);
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions