aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/atmel_usba_udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 07:34:17 -0500
committerFelipe Balbi <balbi@ti.com>2013-03-18 05:17:33 -0400
commit1503a33932732dfbd880b905993e4122a7b53f53 (patch)
tree37a08829dfb72dac202a90cf84e24f2ebf2d2261 /drivers/usb/gadget/atmel_usba_udc.c
parent8f3d7c86944ad03b2b45f1f4442577f087bb8591 (diff)
usb: gadget: atmel_usba_udc: don't touch gadget.dev.driver
udc-core now handles that for us, which means we can remove it from our driver. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r--drivers/usb/gadget/atmel_usba_udc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index e85d50b75de3..f2a970f75bfa 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -1784,7 +1784,6 @@ static int atmel_usba_start(struct usb_gadget *gadget,
1784 1784
1785 udc->devstatus = 1 << USB_DEVICE_SELF_POWERED; 1785 udc->devstatus = 1 << USB_DEVICE_SELF_POWERED;
1786 udc->driver = driver; 1786 udc->driver = driver;
1787 udc->gadget.dev.driver = &driver->driver;
1788 spin_unlock_irqrestore(&udc->lock, flags); 1787 spin_unlock_irqrestore(&udc->lock, flags);
1789 1788
1790 clk_enable(udc->pclk); 1789 clk_enable(udc->pclk);
@@ -1826,7 +1825,6 @@ static int atmel_usba_stop(struct usb_gadget *gadget,
1826 toggle_bias(0); 1825 toggle_bias(0);
1827 usba_writel(udc, CTRL, USBA_DISABLE_MASK); 1826 usba_writel(udc, CTRL, USBA_DISABLE_MASK);
1828 1827
1829 udc->gadget.dev.driver = NULL;
1830 udc->driver = NULL; 1828 udc->driver = NULL;
1831 1829
1832 clk_disable(udc->hclk); 1830 clk_disable(udc->hclk);