[PATCH v2 12/12] irqchip/armada-370-xp: Use the mpic_is_ipi_available() helper in one more case
Marek Behún
kabel at kernel.org
Wed Aug 7 09:41:04 PDT 2024
There is one last case where we can use the helper function
mpic_is_ipi_available() instead of hardcoding the condition.
Signed-off-by: Marek Behún <kabel at kernel.org>
---
drivers/irqchip/irq-armada-370-xp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index 4f3f99af12b2..d7c5ef248474 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -879,7 +879,7 @@ static int __init mpic_of_init(struct device_node *node, struct device_node *par
return err;
}
- if (mpic->parent_irq <= 0) {
+ if (mpic_is_ipi_available(mpic)) {
irq_set_default_host(mpic->domain);
set_handle_irq(mpic_handle_irq);
#ifdef CONFIG_SMP
--
2.44.2
More information about the linux-arm-kernel
mailing list