i2c: bcm2835: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 21 Dec 2021 17:53:20 +0000 (17:53 +0000)
committerWolfram Sang <wsa@kernel.org>
Mon, 3 Jan 2022 09:17:14 +0000 (10:17 +0100)
commitc3b2f911ac11892b672df7829becf28d3a830073
treea80fa66c8898fa2410f0f16bad24eddadda51b13
parent653becec6d568a28666f726ed4c84b10f3c09f5e
i2c: bcm2835: 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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-bcm2835.c