diff options
author | Alexandre Pereira da Silva <aletes.xgr@gmail.com> | 2012-06-26 16:27:10 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-07-02 09:38:01 +0200 |
commit | 7d7b22928b900bcb0f8885a95846e5125a757e76 (patch) | |
tree | 3b06de2e31c22ab9936317bf87d27ba72227076c /drivers/usb/gadget | |
parent | usb: gadget: lpc32xx_udc: Propagate devicetree to gadget drivers (diff) | |
download | linux-7d7b22928b900bcb0f8885a95846e5125a757e76.tar.xz linux-7d7b22928b900bcb0f8885a95846e5125a757e76.zip |
usb: gadget: s3c-hsotg: 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')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 75a28e6d3761..b13e0bb5f5b8 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -2953,6 +2953,7 @@ static int s3c_hsotg_udc_start(struct usb_gadget *gadget, driver->driver.bus = NULL; hsotg->driver = driver; hsotg->gadget.dev.driver = &driver->driver; + hsotg->gadget.dev.of_node = hsotg->dev->of_node; hsotg->gadget.dev.dma_mask = hsotg->dev->dma_mask; hsotg->gadget.speed = USB_SPEED_UNKNOWN; |