Commit 68abc94f authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: net2280: 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: default avatarFelipe Balbi <balbi@ti.com>
parent 812abae5
...@@ -1896,7 +1896,6 @@ static int net2280_start(struct usb_gadget *_gadget, ...@@ -1896,7 +1896,6 @@ static int net2280_start(struct usb_gadget *_gadget,
dev->softconnect = 1; dev->softconnect = 1;
driver->driver.bus = NULL; driver->driver.bus = NULL;
dev->driver = driver; dev->driver = driver;
dev->gadget.dev.driver = &driver->driver;
retval = device_create_file (&dev->pdev->dev, &dev_attr_function); retval = device_create_file (&dev->pdev->dev, &dev_attr_function);
if (retval) goto err_unbind; if (retval) goto err_unbind;
...@@ -1925,7 +1924,6 @@ static int net2280_start(struct usb_gadget *_gadget, ...@@ -1925,7 +1924,6 @@ static int net2280_start(struct usb_gadget *_gadget,
device_remove_file (&dev->pdev->dev, &dev_attr_function); device_remove_file (&dev->pdev->dev, &dev_attr_function);
err_unbind: err_unbind:
driver->unbind (&dev->gadget); driver->unbind (&dev->gadget);
dev->gadget.dev.driver = NULL;
dev->driver = NULL; dev->driver = NULL;
return retval; return retval;
} }
...@@ -1961,7 +1959,6 @@ static int net2280_stop(struct usb_gadget *_gadget, ...@@ -1961,7 +1959,6 @@ static int net2280_stop(struct usb_gadget *_gadget,
stop_activity (dev, driver); stop_activity (dev, driver);
spin_unlock_irqrestore (&dev->lock, flags); spin_unlock_irqrestore (&dev->lock, flags);
dev->gadget.dev.driver = NULL;
dev->driver = NULL; dev->driver = NULL;
net2280_led_active (dev, 0); net2280_led_active (dev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment