USB: gadget: AT91: fix typo in atmel_usba_udc driver
authorJosh Wu <josh.wu@atmel.com>
Tue, 16 Nov 2010 10:51:32 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:03 +0000 (13:33 -0800)
commit b48809518631880207796b4aab0fc39c2f036754 upstream.

compile fix for bug introduced by 969affff547027)

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/atmel_usba_udc.c

index 959f0624fe0dc5864b15a7d18c181f29a4cbe034..2d19d88846efd7951e7185d759868c8b778b3e17 100644 (file)
@@ -2016,7 +2016,7 @@ static int __init usba_udc_probe(struct platform_device *pdev)
                        }
                } else {
                        /* gpio_request fail so use -EINVAL for gpio_is_valid */
-                       ubc->vbus_pin = -EINVAL;
+                       udc->vbus_pin = -EINVAL;
                }
        }