Patchwork [3/5] usb: gadget: fsl_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-4-git-send-email-aletes.xgr@gmail.com>
Download mbox | patch
Permalink /patch/167414/
State Accepted
Delegated to: Kumar Gala
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/fsl_udc_core.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index bc6f9bb..a65ca0f 100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -2560,6 +2560,7 @@  static int __init fsl_udc_probe(struct platform_device *pdev)
 	dev_set_name(&udc_controller->gadget.dev, "gadget");
 	udc_controller->gadget.dev.release = fsl_udc_release;
 	udc_controller->gadget.dev.parent = &pdev->dev;
+	udc_controller->gadget.dev.of_node = pdev->dev.of_node;
 	ret = device_register(&udc_controller->gadget.dev);
 	if (ret < 0)
 		goto err_free_irq;