usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Tue, 26 Jun 2012 14:27:09 +0000 (11:27 -0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 2 Jul 2012 07:37:57 +0000 (10:37 +0300)
Fill dev.of_node of gadget drivers, so they can use devicetree

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/lpc32xx_udc.c

index d227d93..8424947 100644 (file)
@@ -3005,6 +3005,7 @@ static int lpc32xx_start(struct usb_gadget_driver *driver,
 
        udc->driver = driver;
        udc->gadget.dev.driver = &driver->driver;
+       udc->gadget.dev.of_node = udc->dev->of_node;
        udc->enabled = 1;
        udc->selfpowered = 1;
        udc->vbus = 0;