diff options
author | Alexandre Pereira da Silva <aletes.xgr@gmail.com> | 2012-06-26 10:27:10 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-07-02 03:38:01 -0400 |
commit | 7d7b22928b900bcb0f8885a95846e5125a757e76 (patch) | |
tree | 3b06de2e31c22ab9936317bf87d27ba72227076c /drivers/usb/gadget | |
parent | eebc0d368f2ecbe34860b74e28c29069707d2057 (diff) |
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, | |||
2953 | driver->driver.bus = NULL; | 2953 | driver->driver.bus = NULL; |
2954 | hsotg->driver = driver; | 2954 | hsotg->driver = driver; |
2955 | hsotg->gadget.dev.driver = &driver->driver; | 2955 | hsotg->gadget.dev.driver = &driver->driver; |
2956 | hsotg->gadget.dev.of_node = hsotg->dev->of_node; | ||
2956 | hsotg->gadget.dev.dma_mask = hsotg->dev->dma_mask; | 2957 | hsotg->gadget.dev.dma_mask = hsotg->dev->dma_mask; |
2957 | hsotg->gadget.speed = USB_SPEED_UNKNOWN; | 2958 | hsotg->gadget.speed = USB_SPEED_UNKNOWN; |
2958 | 2959 | ||