Skip to content

Commit

Permalink
USB: gadget: at91_adc: fix pullup pin validity check
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD authored and Felipe Balbi committed Jan 10, 2013
1 parent 348409a commit d2aec37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d2aec37

Please sign in to comment.