usb: gadget: dummy_hcd: don't touch gadget.dev.driver
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 12:34:49 +0000 (14:34 +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/dummy_hcd.c

index c4f27d5a2b9c9ca05e91d509bc0eefe604c0dcf1..9d54c01cbf56b61309d1ffec75ab4f02a4e0ae92 100644 (file)
@@ -912,7 +912,6 @@ static int dummy_udc_start(struct usb_gadget *g,
        dum->devstatus = 0;
 
        dum->driver = driver;
-       dum->gadget.dev.driver = &driver->driver;
        dev_dbg(udc_dev(dum), "binding gadget driver '%s'\n",
                        driver->driver.name);
        return 0;
@@ -927,7 +926,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
        dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n",
                        driver->driver.name);
 
-       dum->gadget.dev.driver = NULL;
        dum->driver = NULL;
 
        return 0;