diff options
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index d623c7bda1f6..2d19d88846ef 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c | |||
@@ -2014,6 +2014,9 @@ static int __init usba_udc_probe(struct platform_device *pdev) | |||
2014 | } else { | 2014 | } else { |
2015 | disable_irq(gpio_to_irq(udc->vbus_pin)); | 2015 | disable_irq(gpio_to_irq(udc->vbus_pin)); |
2016 | } | 2016 | } |
2017 | } else { | ||
2018 | /* gpio_request fail so use -EINVAL for gpio_is_valid */ | ||
2019 | udc->vbus_pin = -EINVAL; | ||
2017 | } | 2020 | } |
2018 | } | 2021 | } |
2019 | 2022 | ||