usb: phy: fix return value check of usb_get_phy
authorKishon Vijay Abraham I <kishon@ti.com>
Tue, 26 Jun 2012 12:10:32 +0000 (17:40 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 2 Jul 2012 07:40:49 +0000 (10:40 +0300)
usb_get_phy will return -ENODEV if it's not able to find the phy. Hence
fixed all the callers of usb_get_phy to check for this error condition
instead of relying on a non-zero value as success condition.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found