]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: fusb300_udc: don't touch gadget.dev.driver
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 12:35:24 +0000 (14:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:35 +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/fusb300_udc.c

index 7f48aa6a5d3f20606880e524c9e5ee4f42be6c57..d69e840b101ba32367255395670ce190394b7d66 100644 (file)
@@ -1313,7 +1313,6 @@ static int fusb300_udc_start(struct usb_gadget *g,
        /* hook up the driver */
        driver->driver.bus = NULL;
        fusb300->driver = driver;
-       fusb300->gadget.dev.driver = &driver->driver;
 
        return 0;
 }
@@ -1324,7 +1323,6 @@ static int fusb300_udc_stop(struct usb_gadget *g,
        struct fusb300 *fusb300 = to_fusb300(g);
 
        driver->unbind(&fusb300->gadget);
-       fusb300->gadget.dev.driver = NULL;
 
        init_controller(fusb300);
        fusb300->driver = NULL;