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

index 9d2330de5fcfca4a3a613fe433ca7dbf49a3cbe6..dfe72889c5b2018781a70f74c311f8c0831cfa7b 100644 (file)
@@ -2925,7 +2925,6 @@ static int s3c_hsotg_udc_start(struct usb_gadget *gadget,
 
        driver->driver.bus = NULL;
        hsotg->driver = driver;
-       hsotg->gadget.dev.driver = &driver->driver;
        hsotg->gadget.dev.of_node = hsotg->dev->of_node;
        hsotg->gadget.speed = USB_SPEED_UNKNOWN;
 
@@ -2942,7 +2941,6 @@ static int s3c_hsotg_udc_start(struct usb_gadget *gadget,
 
 err:
        hsotg->driver = NULL;
-       hsotg->gadget.dev.driver = NULL;
        return ret;
 }
 
@@ -2977,7 +2975,6 @@ static int s3c_hsotg_udc_stop(struct usb_gadget *gadget,
 
        hsotg->driver = NULL;
        hsotg->gadget.speed = USB_SPEED_UNKNOWN;
-       hsotg->gadget.dev.driver = NULL;
 
        spin_unlock_irqrestore(&hsotg->lock, flags);
 
This page took 0.026064 seconds and 5 git commands to generate.