gpio: rcar: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 22 Dec 2021 17:19:15 +0000 (17:19 +0000)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 5 Jan 2022 08:57:20 +0000 (09:57 +0100)
commitf1ff272c60eded6ba1aa4c64a313910ce6e85bff
tree9399f4d3b19f8a61c73b3f2964a8ae6338c5a795
parent6408693f95275ffec5327d97a4ed22def8b20692
gpio: rcar: 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 bypassed the hierarchical setup and messed 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: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-rcar.c