[PATCH 13/13] irqchip/armada-370-xp: Use the mpic_is_ipi_available() helper in one more case

Marek Behún kabel at kernel.org
Mon Jul 15 03:51:56 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 3cae6ceacc73..56ab14f0d496 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -889,7 +889,7 @@ static int __init mpic_of_init(struct device_node *node,
 		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