of: only include prom.h on sparc
authorRob Herring <rob.herring@calxeda.com>
Sat, 7 Sep 2013 19:08:20 +0000 (14:08 -0500)
committerRob Herring <rob.herring@calxeda.com>
Thu, 10 Oct 2013 01:04:12 +0000 (20:04 -0500)
The dependency on prom.h by the core DT code is now removed and only
sparc needs to include prom.h for the core code.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
include/linux/of.h

index 4d294a0b8a5716563e4754b6432a3c5a4514e189..54017b83650b0a52a3544cd1ddb020567c0db4d8 100644 (file)
@@ -136,7 +136,9 @@ static inline unsigned long of_read_ulong(const __be32 *cell, int size)
        return of_read_number(cell, size);
 }
 
+#if defined(CONFIG_SPARC)
 #include <asm/prom.h>
+#endif
 
 /* Default #address and #size cells.  Allow arch asm/prom.h to override */
 #if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)