aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 07:35:15 -0500
committerFelipe Balbi <balbi@ti.com>2013-03-18 05:17:35 -0400
commita1827ef6ac81072e9f2894d0db8cfa956d1b2a8d (patch)
tree6801017527992bd42979e9bef3035fd3fad8ed98
parentfc2dba950b27e6ec412efb932458cd6abfe77940 (diff)
usb: gadget: fsl_udc_core: 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>
-rw-r--r--drivers/usb/gadget/fsl_udc_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index acb176d54067..4d5ff236bed4 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -1939,7 +1939,6 @@ static int fsl_udc_start(struct usb_gadget *g,
1939 driver->driver.bus = NULL; 1939 driver->driver.bus = NULL;
1940 /* hook up the driver */ 1940 /* hook up the driver */
1941 udc_controller->driver = driver; 1941 udc_controller->driver = driver;
1942 udc_controller->gadget.dev.driver = &driver->driver;
1943 spin_unlock_irqrestore(&udc_controller->lock, flags); 1942 spin_unlock_irqrestore(&udc_controller->lock, flags);
1944 1943
1945 if (!IS_ERR_OR_NULL(udc_controller->transceiver)) { 1944 if (!IS_ERR_OR_NULL(udc_controller->transceiver)) {
@@ -1955,7 +1954,6 @@ static int fsl_udc_start(struct usb_gadget *g,
1955 if (retval < 0) { 1954 if (retval < 0) {
1956 ERR("can't bind to transceiver\n"); 1955 ERR("can't bind to transceiver\n");
1957 driver->unbind(&udc_controller->gadget); 1956 driver->unbind(&udc_controller->gadget);
1958 udc_controller->gadget.dev.driver = 0;
1959 udc_controller->driver = 0; 1957 udc_controller->driver = 0;
1960 return retval; 1958 return retval;
1961 } 1959 }
@@ -1998,7 +1996,6 @@ static int fsl_udc_stop(struct usb_gadget *g,
1998 nuke(loop_ep, -ESHUTDOWN); 1996 nuke(loop_ep, -ESHUTDOWN);
1999 spin_unlock_irqrestore(&udc_controller->lock, flags); 1997 spin_unlock_irqrestore(&udc_controller->lock, flags);
2000 1998
2001 udc_controller->gadget.dev.driver = NULL;
2002 udc_controller->driver = NULL; 1999 udc_controller->driver = NULL;
2003 2000
2004 return 0; 2001 return 0;