usb: phy: don't return with NULL from devm_usb_get_phy()
authorGabor Juhos <juhosg@openwrt.org>
Fri, 11 Oct 2013 07:01:03 +0000 (09:01 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 11 Oct 2013 18:50:38 +0000 (13:50 -0500)
The callers are expecting an ERR_PTR value in case
of an error. Change he code to return with an encoded
-ENOMEM value in the case of a failed devres_alloc call.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found