提交 0f153a1b 编写于 作者: R Rob Herring 提交者: Greg Kroah-Hartman

usb: chipidea: Set the DT node on the child device

The ChipIdea glue drivers just copy the glue resources to the "ci_hdrc"
child device. Instead, set the child device's DT node pointer to the
parent device's node so that platform_get_irq() can find the IRQ
resources in the DT. This removes the need for statically populating the
IRQ resources from the DT which has been deprecated for some time.
Acked-by: NPeter Chen <peter.chen@kernel.org>
Signed-off-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211215225646.1997946-1-robh@kernel.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e1ffd5f0
...@@ -864,6 +864,7 @@ struct platform_device *ci_hdrc_add_device(struct device *dev, ...@@ -864,6 +864,7 @@ struct platform_device *ci_hdrc_add_device(struct device *dev,
} }
pdev->dev.parent = dev; pdev->dev.parent = dev;
device_set_of_node_from_dev(&pdev->dev, dev);
ret = platform_device_add_resources(pdev, res, nres); ret = platform_device_add_resources(pdev, res, nres);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册