Patchwork [4/5] usb: gadget: at91_udc: 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-5-git-send-email-aletes.xgr@gmail.com>
Download mbox | patch
Permalink /patch/167415/
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/at91_udc.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 1a4430f..c9e66df 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;