usb: host: fotg210: Use platform_get_irq() to get the interrupt
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static allocation of IRQ resources in DT core code, this causes an issue when using hierarchical interrupt domains using "interrupts" property in the node as this bypasses the hierarchical setup and messes up the irq chaining. In preparation for removal of static setup of IRQ resource from DT core code use platform_get_irq(). Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/20211220010411.12075-2-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f28fb27ef7
commit
9198e0298e
|
@ -5576,14 +5576,9 @@ static int fotg210_hcd_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
pdev->dev.power.power_state = PMSG_ON;
|
pdev->dev.power.power_state = PMSG_ON;
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (!res) {
|
if (irq < 0)
|
||||||
dev_err(dev, "Found HC with no IRQ. Check %s setup!\n",
|
return irq;
|
||||||
dev_name(dev));
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
|
|
||||||
irq = res->start;
|
|
||||||
|
|
||||||
hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev,
|
hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev,
|
||||||
dev_name(dev));
|
dev_name(dev));
|
||||||
|
|
Loading…
Reference in New Issue