i2c: riic: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 21 Dec 2021 17:53:22 +0000 (17:53 +0000)
committerWolfram Sang <wsa@kernel.org>
Mon, 3 Jan 2022 09:17:32 +0000 (10:17 +0100)
commit8ab1ff9b1ec819bf431cf6c370ba3d9f8c8a108b
treebdb50faad78e5b1a3c8489109be111f5993f5b95
parentaab799e44ce3953ac56c42721742c9cd9208b2f4
i2c: riic: 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>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-riic.c