Commit 42c82fb4 authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: dummy_hcd: 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 155149e6
...@@ -912,7 +912,6 @@ static int dummy_udc_start(struct usb_gadget *g, ...@@ -912,7 +912,6 @@ static int dummy_udc_start(struct usb_gadget *g,
dum->devstatus = 0; dum->devstatus = 0;
dum->driver = driver; dum->driver = driver;
dum->gadget.dev.driver = &driver->driver;
dev_dbg(udc_dev(dum), "binding gadget driver '%s'\n", dev_dbg(udc_dev(dum), "binding gadget driver '%s'\n",
driver->driver.name); driver->driver.name);
return 0; return 0;
...@@ -927,7 +926,6 @@ static int dummy_udc_stop(struct usb_gadget *g, ...@@ -927,7 +926,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n", dev_dbg(udc_dev(dum), "unregister gadget driver '%s'\n",
driver->driver.name); driver->driver.name);
dum->gadget.dev.driver = NULL;
dum->driver = NULL; dum->driver = NULL;
return 0; return 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