irqchip/armada-370-xp: Use mpic_is_ipi_available() in mpic_of_init()

mpic_of_init() contains the last case where the open coded IPI support
condition needs to be replaced with mpic_is_ipi_available() to keep the
code consistent.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Marek Behún 2024-08-07 18:41:04 +02:00 committed by Thomas Gleixner
parent d6ca3f4402
commit b77c6a73e1

View File

@ -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