mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
usb: ehci-mx6: Print error code on failure
Print the error code if the regulator enable fails, otherwise the error message is rather useless and confusing. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
10bcafb8ac
commit
73021d11d4
1 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ static int mx6_init_after_reset(struct ehci_ctrl *dev)
|
||||||
(type == USB_INIT_DEVICE) ?
|
(type == USB_INIT_DEVICE) ?
|
||||||
false : true);
|
false : true);
|
||||||
if (ret && ret != -ENOSYS) {
|
if (ret && ret != -ENOSYS) {
|
||||||
puts("Error enabling VBUS supply\n");
|
printf("Error enabling VBUS supply (ret=%i)\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -615,7 +615,7 @@ static int ehci_usb_probe(struct udevice *dev)
|
||||||
(type == USB_INIT_DEVICE) ?
|
(type == USB_INIT_DEVICE) ?
|
||||||
false : true);
|
false : true);
|
||||||
if (ret && ret != -ENOSYS) {
|
if (ret && ret != -ENOSYS) {
|
||||||
puts("Error enabling VBUS supply\n");
|
printf("Error enabling VBUS supply (ret=%i)\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue