Skip to content

Commit

Permalink
of: only include prom.h on sparc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Oct 10, 2013
1 parent 26a2056 commit b5b4bb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b5b4bb3

Please sign in to comment.