diff options
-rw-r--r-- | drivers/usb/host/ehci-mx6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 24f8ad7af84..470eddd0c9e 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -447,7 +447,7 @@ static int mx6_init_after_reset(struct ehci_ctrl *dev) ret = regulator_set_enable(priv->vbus_supply, (type == USB_INIT_DEVICE) ? false : true); - if (ret) { + if (ret && ret != -ENOSYS) { puts("Error enabling VBUS supply\n"); return ret; } @@ -614,7 +614,7 @@ static int ehci_usb_probe(struct udevice *dev) ret = regulator_set_enable(priv->vbus_supply, (type == USB_INIT_DEVICE) ? false : true); - if (ret) { + if (ret && ret != -ENOSYS) { puts("Error enabling VBUS supply\n"); return ret; } |