diff options
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index d5a2c5162915..39d187fb038a 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c | |||
@@ -1937,7 +1937,7 @@ static int __init usba_udc_probe(struct platform_device *pdev) | |||
1937 | goto err_device_add; | 1937 | goto err_device_add; |
1938 | } | 1938 | } |
1939 | 1939 | ||
1940 | if (pdata && pdata->vbus_pin != GPIO_PIN_NONE) { | 1940 | if (pdata && pdata->vbus_pin >= 0) { |
1941 | if (!gpio_request(pdata->vbus_pin, "atmel_usba_udc")) { | 1941 | if (!gpio_request(pdata->vbus_pin, "atmel_usba_udc")) { |
1942 | udc->vbus_pin = pdata->vbus_pin; | 1942 | udc->vbus_pin = pdata->vbus_pin; |
1943 | 1943 | ||