Searched hist:"7 f4d1e7b" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/usb/phy/ |
H A D | phy.c | 7f4d1e7b Fri Oct 11 02:01:03 CDT 2013 Gabor Juhos <juhosg@openwrt.org> usb: phy: don't return with NULL from devm_usb_get_phy()
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> 7f4d1e7b Fri Oct 11 02:01:03 CDT 2013 Gabor Juhos <juhosg@openwrt.org> usb: phy: don't return with NULL from devm_usb_get_phy() 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>
|