gpio: ts5500: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 22 Dec 2021 17:19:14 +0000 (17:19 +0000)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 5 Jan 2022 08:57:06 +0000 (09:57 +0100)
commit6408693f95275ffec5327d97a4ed22def8b20692
treeb437b5ba1e3856e383b838152fd704367ea0d543
parent80f60eba9ceea670092f599a6c90ca2cd7794004
gpio: ts5500: 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-ts5500.c