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

index e85d50b75de3bab0a5a57658f4345b93cd4bcdc9..f2a970f75bfa949b2c28db72c183e00790fea280 100644 (file)
@@ -1784,7 +1784,6 @@ static int atmel_usba_start(struct usb_gadget *gadget,
 
        udc->devstatus = 1 << USB_DEVICE_SELF_POWERED;
        udc->driver = driver;
-       udc->gadget.dev.driver = &driver->driver;
        spin_unlock_irqrestore(&udc->lock, flags);
 
        clk_enable(udc->pclk);
@@ -1826,7 +1825,6 @@ static int atmel_usba_stop(struct usb_gadget *gadget,
        toggle_bias(0);
        usba_writel(udc, CTRL, USBA_DISABLE_MASK);
 
-       udc->gadget.dev.driver = NULL;
        udc->driver = NULL;
 
        clk_disable(udc->hclk);