Commit 908f6fc3 authored by Mans Rullgard's avatar Mans Rullgard Committed by Greg Kroah-Hartman

usb: musb: sunxi: propagate devicetree node to glue pdev

In order for devicetree nodes to be correctly associated with attached
devices, the controller node needs to be propagated to the glue device.
Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200115132547.364-3-b-liu@ti.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f101a73
...@@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev) ...@@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev)
pinfo.name = "musb-hdrc"; pinfo.name = "musb-hdrc";
pinfo.id = PLATFORM_DEVID_AUTO; pinfo.id = PLATFORM_DEVID_AUTO;
pinfo.parent = &pdev->dev; pinfo.parent = &pdev->dev;
pinfo.fwnode = of_fwnode_handle(pdev->dev.of_node);
pinfo.of_node_reused = true;
pinfo.res = pdev->resource; pinfo.res = pdev->resource;
pinfo.num_res = pdev->num_resources; pinfo.num_res = pdev->num_resources;
pinfo.data = &pdata; pinfo.data = &pdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment