usb: gadget: mv_udc_core: don't touch gadget.dev.driver
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 12:36:05 +0000 (14:36 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:38 +0000 (11:17 +0200)
udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c

index b306111..d1b243d 100644 (file)
@@ -1352,7 +1352,6 @@ static int mv_udc_start(struct usb_gadget *gadget,
        /* hook up the driver ... */
        driver->driver.bus = NULL;
        udc->driver = driver;
-       udc->gadget.dev.driver = &driver->driver;
 
        udc->usb_state = USB_STATE_ATTACHED;
        udc->ep0_state = WAIT_FOR_SETUP;
@@ -1367,7 +1366,6 @@ static int mv_udc_start(struct usb_gadget *gadget,
                        dev_err(&udc->dev->dev,
                                "unable to register peripheral to otg\n");
                        udc->driver = NULL;
-                       udc->gadget.dev.driver = NULL;
                        return retval;
                }
        }
@@ -1403,7 +1401,6 @@ static int mv_udc_stop(struct usb_gadget *gadget,
        spin_unlock_irqrestore(&udc->lock, flags);
 
        /* unbind gadget driver */
-       udc->gadget.dev.driver = NULL;
        udc->driver = NULL;
 
        return 0;