usb: gadget: fsl_qe_udc: don't touch gadget.dev.driver
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 12:35:06 +0000 (14:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:34 +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/fsl_qe_udc.c

index 0e7531bd33f4489d5a496f7f3046f6f968199ca9..37feb62fa930ece4a885eb65cb680299c7bf3d4b 100644 (file)
@@ -2296,7 +2296,6 @@ static int fsl_qe_start(struct usb_gadget *gadget,
        driver->driver.bus = NULL;
        /* hook up the driver */
        udc->driver = driver;
-       udc->gadget.dev.driver = &driver->driver;
        udc->gadget.speed = driver->max_speed;
 
        /* Enable IRQ reg and Set usbcmd reg EN bit */
@@ -2338,7 +2337,6 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
                nuke(loop_ep, -ESHUTDOWN);
        spin_unlock_irqrestore(&udc->lock, flags);
 
-       udc->gadget.dev.driver = NULL;
        udc->driver = NULL;
 
        dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",