aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-09-17 15:34:00 -0400
committerRob Herring <rob.herring@calxeda.com>2013-10-09 21:04:11 -0400
commit5c19c5c6d4f5e1dc0d0e26b683bc820dda01fe06 (patch)
tree233cfc00452b6c552d68b213c632e7cf7ccc12ca /arch
parentd0dfa16a600190d142f7538e5909d13c35b60d98 (diff)
powerpc: clean-up include ordering in prom.h
Now that the core OF headers don't depend on prom.h, rearrange the includes. There are still lots of implicit includes in the powerpc tree, so the includes of OF headers are still necessary. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/prom.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h
index b8774bdc69e0..7687f82a3217 100644
--- a/arch/powerpc/include/asm/prom.h
+++ b/arch/powerpc/include/asm/prom.h
@@ -1,4 +1,3 @@
1#include <linux/of.h> /* linux/of.h gets to determine #include ordering */
2#ifndef _POWERPC_PROM_H 1#ifndef _POWERPC_PROM_H
3#define _POWERPC_PROM_H 2#define _POWERPC_PROM_H
4#ifdef __KERNEL__ 3#ifdef __KERNEL__
@@ -20,6 +19,13 @@
20#include <asm/irq.h> 19#include <asm/irq.h>
21#include <linux/atomic.h> 20#include <linux/atomic.h>
22 21
22/* These includes should be removed once implicit includes are cleaned up. */
23#include <linux/of.h>
24#include <linux/of_fdt.h>
25#include <linux/of_address.h>
26#include <linux/of_irq.h>
27#include <linux/platform_device.h>
28
23/* 29/*
24 * OF address retreival & translation 30 * OF address retreival & translation
25 */ 31 */
@@ -125,14 +131,5 @@ struct of_drconf_cell {
125 */ 131 */
126extern unsigned char ibm_architecture_vec[]; 132extern unsigned char ibm_architecture_vec[];
127 133
128/* These includes are put at the bottom because they may contain things
129 * that are overridden by this file. Ideally they shouldn't be included
130 * by this file, but there are a bunch of .c files that currently depend
131 * on it. Eventually they will be cleaned up. */
132#include <linux/of_fdt.h>
133#include <linux/of_address.h>
134#include <linux/of_irq.h>
135#include <linux/platform_device.h>
136
137#endif /* __KERNEL__ */ 134#endif /* __KERNEL__ */
138#endif /* _POWERPC_PROM_H */ 135#endif /* _POWERPC_PROM_H */