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>
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 470eddd..5f84c7b 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -448,7 +448,7 @@
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}
@@ -615,7 +615,7 @@
(type == USB_INIT_DEVICE) ?
false : true);
if (ret && ret != -ENOSYS) {
- puts("Error enabling VBUS supply\n");
+ printf("Error enabling VBUS supply (ret=%i)\n", ret);
return ret;
}
}