aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-12-23 13:08:04 -0500
committerFelipe Balbi <balbi@ti.com>2013-01-10 05:41:01 -0500
commitd2aec37c3b7aa029ffb4ac5fa3d1ee3453d4d0a4 (patch)
tree286e8a7a54b38ba21d715ea0cfda1cbb16829e08 /drivers/usb/gadget
parent348409a267e441c46345f325db37e9824fcf675e (diff)
USB: gadget: at91_adc: fix pullup pin validity check
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/at91_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index e81d8a223f76..10f45fa01abd 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -1738,7 +1738,7 @@ static int at91udc_probe(struct platform_device *pdev)
1738 1738
1739 /* rm9200 needs manual D+ pullup; off by default */ 1739 /* rm9200 needs manual D+ pullup; off by default */
1740 if (cpu_is_at91rm9200()) { 1740 if (cpu_is_at91rm9200()) {
1741 if (gpio_is_valid(udc->board.pullup_pin)) { 1741 if (!gpio_is_valid(udc->board.pullup_pin)) {
1742 DBG("no D+ pullup?\n"); 1742 DBG("no D+ pullup?\n");
1743 retval = -ENODEV; 1743 retval = -ENODEV;
1744 goto fail0; 1744 goto fail0;