forked from mirrors/linux
		
	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 <maxime.ripard@free-electrons.com> Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
		
							parent
							
								
									c2573077df
								
							
						
					
					
						commit
						ebafed7ab9
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,7 @@
 | 
			
		|||
#include <linux/ioport.h>
 | 
			
		||||
#include <linux/interrupt.h>
 | 
			
		||||
#include <linux/irq.h>
 | 
			
		||||
#include <linux/irqchip.h>
 | 
			
		||||
#include <linux/random.h>
 | 
			
		||||
#include <linux/smp.h>
 | 
			
		||||
#include <linux/init.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -114,6 +115,9 @@ EXPORT_SYMBOL_GPL(set_irq_flags);
 | 
			
		|||
 | 
			
		||||
void __init init_IRQ(void)
 | 
			
		||||
{
 | 
			
		||||
	if (IS_ENABLED(CONFIG_OF) && !machine_desc->init_irq)
 | 
			
		||||
		irqchip_init();
 | 
			
		||||
	else
 | 
			
		||||
		machine_desc->init_irq();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue