From: Rob Herring Date: Sat, 7 Sep 2013 19:08:20 +0000 (-0500) Subject: of: only include prom.h on sparc X-Git-Tag: v3.13-rc1~117^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5b4bb3f6a11f9c37b6d53138244f2ffe5bacd12;p=kernel%2Fkernel-generic.git of: only include prom.h on sparc 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 Acked-by: Grant Likely --- diff --git a/include/linux/of.h b/include/linux/of.h index 4d294a0..54017b8 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -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 +#endif /* Default #address and #size cells. Allow arch asm/prom.h to override */ #if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)