forked from Mirrors/opensbi
		
	lib: utils/irqchip: Use fdt_driver for initialization
The irqchip driver subsystem does not need any extra data, so it can use `struct fdt_driver` directly. The generic fdt_irqchip_init() performs a best-effort initialization of all matching DT nodes. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							a7f3c159a0
						
					
				
				
					commit
					9e1a1518d4
				
			@@ -11,14 +11,10 @@
 | 
			
		||||
#define __FDT_IRQCHIP_H__
 | 
			
		||||
 | 
			
		||||
#include <sbi/sbi_types.h>
 | 
			
		||||
#include <sbi_utils/fdt/fdt_driver.h>
 | 
			
		||||
 | 
			
		||||
#ifdef CONFIG_FDT_IRQCHIP
 | 
			
		||||
 | 
			
		||||
struct fdt_irqchip {
 | 
			
		||||
	const struct fdt_match *match_table;
 | 
			
		||||
	int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
int fdt_irqchip_init(void);
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user