From: Alexandre Pereira da Silva Date: Tue, 26 Jun 2012 14:27:09 +0000 (-0300) Subject: usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eebc0d368f2ecbe34860b74e28c29069707d2057;p=linux-beck.git usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers Fill dev.of_node of gadget drivers, so they can use devicetree Signed-off-by: Alexandre Pereira da Silva Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/lpc32xx_udc.c b/drivers/usb/gadget/lpc32xx_udc.c index d227d93ce899..8424947838ac 100644 --- a/drivers/usb/gadget/lpc32xx_udc.c +++ b/drivers/usb/gadget/lpc32xx_udc.c @@ -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;