pinctrl: samsung: Use platform_get_irq_optional() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 24 Dec 2021 14:57:47 +0000 (14:57 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 25 Dec 2021 10:18:06 +0000 (11:18 +0100)
commita382d568f144b9e533ad210117c6c50d8dbdcaf1
treef1398b9d23bc6008456229699632571f30a45de8
parent16dd3bb5c190654854c0846ee433076139f71c6a
pinctrl: samsung: Use platform_get_irq_optional() 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_optional().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20211224145748.18754-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/pinctrl/samsung/pinctrl-samsung.c