USB: Unbreak fsl_usb2_udc
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 21 Dec 2007 16:33:46 +0000 (08:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Dec 2007 07:14:33 +0000 (23:14 -0800)
Commit a4e3ef5... (USB: gadget: gadget_is_{dualspeed,otg} predicates
and cleanup) broke fsl_usb2_udc; the build test didn't cover peripheral
drivers, just gadget drivers.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_usb2_udc.c

index 9bb7f64a85cdb9b0e5041f00162b3f89d0b957dd..038e7d7b4da1c13845ae944f07b5aaeabf27b0ec 100644 (file)
@@ -1318,7 +1318,7 @@ static void setup_received_irq(struct fsl_udc *udc,
                                | USB_TYPE_STANDARD)) {
                        /* Note: The driver has not include OTG support yet.
                         * This will be set when OTG support is added */
-                       if (!gadget_is_otg(udc->gadget))
+                       if (!gadget_is_otg(&udc->gadget))
                                break;
                        else if (setup->bRequest == USB_DEVICE_B_HNP_ENABLE)
                                udc->gadget.b_hnp_enable = 1;