of: Rework linux/of.h and asm/prom.h include ordering
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Oct 2009 16:57:44 +0000 (10:57 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Oct 2009 16:57:44 +0000 (10:57 -0600)
commit9d24c888c779c877f1baf5a73e0cec78266ff7bb
tree6e14f7a1c1324f609c01f8b13ca0acaa1999ac49
parent4bdf0bb7d64cf672199519b3d808e2a82f5b59e9
of: Rework linux/of.h and asm/prom.h include ordering

In preparation to prune things out of the Sparc, PowerPC and Microblaze
asm/prom.h files, change the #include statements to ensure that
even if asm/prom.h is included first, linux/of.h gets to determine the
order in which files are processed.

This patch adds a #include <linux/of.h> to each of the prom.h files
*above* the multi-include protection macros to ensure that linux/of.h
can define things before prom.h gets processed.

At the end of the merge the cross dependencies between the files should
be gone and a sane #include scheme can be restored.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/microblaze/include/asm/prom.h
arch/powerpc/include/asm/prom.h
arch/sparc/include/asm/prom.h