ata: pata_pxa: Use platform_get_irq() to get the interrupt
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 9 Mar 2022 07:28:34 +0000 (07:28 +0000)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 10 Mar 2022 02:17:59 +0000 (11:17 +0900)
commitd268afa1ff6f582dede1819fbed7ded7442a406c
tree608e72573a58344e538a7a1e406dfe5919134039
parent5e776d7b20f040f3219128cee17a1191d66a0f3f
ata: pata_pxa: 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().

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_pxa.c