OSDN Git Service

net: ethoc: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 24 Dec 2021 19:26:22 +0000 (19:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Dec 2021 12:22:19 +0000 (12:22 +0000)
commit6c119fbdb805499308b1d395ed36649aedb198ca
tree689ca2fffdafa402d98e21fb8836a659720d6a11
parent441faddaadd7343d98e97725e3de265838fe32b8
net: ethoc: 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().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c