Patchwork [2/5] usb: gadget: s3c-hsotg: Propagate devicetree to gadget drivers

login
register
mail settings
Submitter Alexandre Pereira da Silva
Date June 26, 2012, 2:27 p.m.
Message ID <1340720833-781-3-git-send-email-aletes.xgr@gmail.com>
Download mbox | patch
Permalink /patch/167413/
State Not Applicable
Headers show

Comments

Alexandre Pereira da Silva - June 26, 2012, 2:27 p.m.
Fill dev.of_node of gadget drivers, so they can use devicetree

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---
 drivers/usb/gadget/s3c-hsotg.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index f4abb0e..fed2f28 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -2954,6 +2954,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;