From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 23 Dec 2012 18:08:04 +0000 (+0100) Subject: USB: gadget: at91_adc: fix pullup pin validity check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d2aec37c3b7aa029ffb4ac5fa3d1ee3453d4d0a4;p=openwrt%2Fstaging%2Fblogic.git USB: gadget: at91_adc: fix pullup pin validity check Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: linux-usb@vger.kernel.org Signed-off-by: Felipe Balbi --- 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) /* rm9200 needs manual D+ pullup; off by default */ if (cpu_is_at91rm9200()) { - if (gpio_is_valid(udc->board.pullup_pin)) { + if (!gpio_is_valid(udc->board.pullup_pin)) { DBG("no D+ pullup?\n"); retval = -ENODEV; goto fail0;