From: Maxime Ripard Date: Thu, 28 Mar 2013 20:46:44 +0000 (+0100) Subject: ARM: irq: Call irqchip_init if no init_irq function is specified X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebafed7ab9b637656b685f1dc1ee528c77241a0d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ARM: irq: Call irqchip_init if no init_irq function is specified More and more sub-architectures are using only the irqchip_init function. Make the core code call this function if no init_irq field is provided in the machine description to remove some boilerplate code. Signed-off-by: Maxime Ripard Acked-by: Rob Herring Signed-off-by: Olof Johansson --- diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 8e4ef4c83a74..9723d17b8f38 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -114,7 +115,10 @@ EXPORT_SYMBOL_GPL(set_irq_flags); void __init init_IRQ(void) { - machine_desc->init_irq(); + if (IS_ENABLED(CONFIG_OF) && !machine_desc->init_irq) + irqchip_init(); + else + machine_desc->init_irq(); } #ifdef CONFIG_MULTI_IRQ_HANDLER