diff options
author | Alexandre Pereira da Silva <aletes.xgr@gmail.com> | 2012-06-26 10:27:11 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-07-02 03:38:04 -0400 |
commit | cb4baf104b11458400941f6d843ed22e122bba2d (patch) | |
tree | 4704fe90944371aaaab29c281b1641cf5587cb9b /drivers/usb/gadget | |
parent | 7d7b22928b900bcb0f8885a95846e5125a757e76 (diff) |
usb: gadget: fsl_udc: 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/fsl_udc_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index 28316858208b..df9fe1cccfe2 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) | |||
2560 | dev_set_name(&udc_controller->gadget.dev, "gadget"); | 2560 | dev_set_name(&udc_controller->gadget.dev, "gadget"); |
2561 | udc_controller->gadget.dev.release = fsl_udc_release; | 2561 | udc_controller->gadget.dev.release = fsl_udc_release; |
2562 | udc_controller->gadget.dev.parent = &pdev->dev; | 2562 | udc_controller->gadget.dev.parent = &pdev->dev; |
2563 | udc_controller->gadget.dev.of_node = pdev->dev.of_node; | ||
2563 | ret = device_register(&udc_controller->gadget.dev); | 2564 | ret = device_register(&udc_controller->gadget.dev); |
2564 | if (ret < 0) | 2565 | if (ret < 0) |
2565 | goto err_free_irq; | 2566 | goto err_free_irq; |