diff options
author | Alexandre Pereira da Silva <aletes.xgr@gmail.com> | 2012-06-26 18:27:12 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-07-02 11:38:07 +0400 |
commit | 65c84ea18b1b4b8c03fb67c3bea023ed1446bd2e (patch) | |
tree | 8c04ee70ebb67528729103c7aa06a5bc310a86cc /drivers/usb/gadget/at91_udc.c | |
parent | cb4baf104b11458400941f6d843ed22e122bba2d (diff) | |
download | linux-65c84ea18b1b4b8c03fb67c3bea023ed1446bd2e.tar.xz |
usb: gadget: at91_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/at91_udc.c')
-rw-r--r-- | drivers/usb/gadget/at91_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 1a4430f315c3..c9e66dfb02e6 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -1634,6 +1634,7 @@ static int at91_start(struct usb_gadget *gadget, udc = container_of(gadget, struct at91_udc, gadget); udc->driver = driver; udc->gadget.dev.driver = &driver->driver; + udc->gadget.dev.of_node = udc->pdev->dev.of_node; dev_set_drvdata(&udc->gadget.dev, &driver->driver); udc->enabled = 1; udc->selfpowered = 1; |