usb: chipidea: Set the DT node on the child device
Subsystems (2)
PATCH 1/1 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.
--- drivers/usb/chipidea/core.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/chipidea/core.c +1 -0
@@ -864,6 +864,7 @@ struct platform_device *ci_hdrc_add_device(struct device *dev, } pdev->dev.parent = dev; +device_set_of_node_from_dev (&pdev->dev, dev); ret =platform_device_add_resources (pdev, res, nres);if (ret)
Signature · 1 line
2.32.0
Quoted 7 lines · Rob Herring
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 thatplatform_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.Signed-off-by Rob Herring <[email protected]>
Quoted 19 lines
--- drivers/usb/chipidea/core.c | 1 + 1 file changed, 1 insertion(+)drivers/usb/chipidea/core.c +1
-0@@ -864,6 +864,7 @@ struct platform_device *ci_hdrc_add_device(struct device *dev, } pdev->dev.parent = dev; +device_set_of_node_from_dev (&pdev->dev, dev); ret =platform_device_add_resources (pdev, res, nres);if (ret)Signature · 1 line
2.32.0
Signature · 2 lines
Thanks, Peter Chen