Commit eebc0d36 authored by Alexandre Pereira da Silva's avatar Alexandre Pereira da Silva Committed by Felipe Balbi

usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers

Fill dev.of_node of gadget drivers, so they can use devicetree
Signed-off-by: default avatarAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 48a31af7
...@@ -3005,6 +3005,7 @@ static int lpc32xx_start(struct usb_gadget_driver *driver, ...@@ -3005,6 +3005,7 @@ static int lpc32xx_start(struct usb_gadget_driver *driver,
udc->driver = driver; udc->driver = driver;
udc->gadget.dev.driver = &driver->driver; udc->gadget.dev.driver = &driver->driver;
udc->gadget.dev.of_node = udc->dev->of_node;
udc->enabled = 1; udc->enabled = 1;
udc->selfpowered = 1; udc->selfpowered = 1;
udc->vbus = 0; udc->vbus = 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