 32df8dca50
			
		
	
	
	32df8dca50
	
	
	
		
			
			HAVE_ARCH_DEVTREE_FIXUPS appears to always be needed except for sparc, but it is only used for /proc/device-teee and sparc does not enable /proc/device-tree. So this option is redundant. Remove the option and always enable it. This has the side effect of fixing /proc/device-tree on arches such as arm64 which failed to define this option. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Grant Likely <grant.likely@linaro.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: James Hogan <james.hogan@imgtec.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Jonas Bonn <jonas@southpole.se> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com>
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1.1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1.1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Definitions for Device tree / OpenFirmware handling on X86
 | |
|  *
 | |
|  * based on arch/powerpc/include/asm/prom.h which is
 | |
|  *         Copyright (C) 1996-2005 Paul Mackerras.
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU General Public License
 | |
|  * as published by the Free Software Foundation; either version
 | |
|  * 2 of the License, or (at your option) any later version.
 | |
|  */
 | |
| 
 | |
| #ifndef _ASM_X86_PROM_H
 | |
| #define _ASM_X86_PROM_H
 | |
| #ifndef __ASSEMBLY__
 | |
| 
 | |
| #include <linux/of.h>
 | |
| #include <linux/types.h>
 | |
| #include <linux/pci.h>
 | |
| 
 | |
| #include <asm/irq.h>
 | |
| #include <linux/atomic.h>
 | |
| #include <asm/setup.h>
 | |
| 
 | |
| #ifdef CONFIG_OF
 | |
| extern int of_ioapic;
 | |
| extern u64 initial_dtb;
 | |
| extern void add_dtb(u64 data);
 | |
| extern void x86_add_irq_domains(void);
 | |
| void x86_of_pci_init(void);
 | |
| void x86_dtb_init(void);
 | |
| #else
 | |
| static inline void add_dtb(u64 data) { }
 | |
| static inline void x86_add_irq_domains(void) { }
 | |
| static inline void x86_of_pci_init(void) { }
 | |
| static inline void x86_dtb_init(void) { }
 | |
| #define of_ioapic 0
 | |
| #endif
 | |
| 
 | |
| extern char cmd_line[COMMAND_LINE_SIZE];
 | |
| 
 | |
| #endif /* __ASSEMBLY__ */
 | |
| #endif
 |