Commit ee4b47cf authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: lpc32xx_udc: 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 9fa4c960
...@@ -2946,7 +2946,6 @@ static int lpc32xx_start(struct usb_gadget *gadget, ...@@ -2946,7 +2946,6 @@ static int lpc32xx_start(struct usb_gadget *gadget,
} }
udc->driver = driver; udc->driver = driver;
udc->gadget.dev.driver = &driver->driver;
udc->gadget.dev.of_node = udc->dev->of_node; udc->gadget.dev.of_node = udc->dev->of_node;
udc->enabled = 1; udc->enabled = 1;
udc->selfpowered = 1; udc->selfpowered = 1;
...@@ -2995,7 +2994,6 @@ static int lpc32xx_stop(struct usb_gadget *gadget, ...@@ -2995,7 +2994,6 @@ static int lpc32xx_stop(struct usb_gadget *gadget,
} }
udc->enabled = 0; udc->enabled = 0;
udc->gadget.dev.driver = NULL;
udc->driver = NULL; udc->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