summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/lpc32xx_udc.c
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2012-06-26 16:27:09 +0200
committerFelipe Balbi <balbi@ti.com>2012-07-02 09:37:57 +0200
commiteebc0d368f2ecbe34860b74e28c29069707d2057 (patch)
treed25e4c0718df7fca499a842d794cee25271c2ba9 /drivers/usb/gadget/lpc32xx_udc.c
parentusb: gadget: mass_storage: make "file" and "ro" read only in some cases (diff)
downloadlinux-eebc0d368f2ecbe34860b74e28c29069707d2057.tar.xz
linux-eebc0d368f2ecbe34860b74e28c29069707d2057.zip
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 <aletes.xgr@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/lpc32xx_udc.c')
-rw-r--r--drivers/usb/gadget/lpc32xx_udc.c1
1 files changed, 1 insertions, 0 deletions
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;