soc: ti: smartreflex: Use platform_get_irq_optional() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 5 Jan 2022 18:03:22 +0000 (18:03 +0000)
committerNishanth Menon <nm@ti.com>
Wed, 2 Feb 2022 19:11:40 +0000 (13:11 -0600)
commit001d7c83704bc98c28cc6444d2e7518d12ed029f
tree437bf6700ff249407a3111c81736698120dba6f1
parenta8eba8dde5fbf0b9f62a38230af6d66c389c37fc
soc: ti: smartreflex: 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().

While at it return 0 instead of returning ret in the probe success path.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220105180323.8563-1-prabhakar.mahadev-lad.rj@bp.renesas.com
drivers/soc/ti/smartreflex.c