Skip to content

Commit

Permalink
of: protect linux/of.h with CONFIG_OF
Browse files Browse the repository at this point in the history
For platforms that have CONFIG_OF optional, we need to make the contents
of linux/of.h conditional on CONFIG_OF.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Jeremy Kerr authored and Grant Likely committed Feb 14, 2010
1 parent 7c540d9 commit 9dfbf20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

#include <asm/byteorder.h>

#ifdef CONFIG_OF

typedef u32 phandle;
typedef u32 ihandle;

Expand Down Expand Up @@ -194,4 +196,5 @@ extern void of_attach_node(struct device_node *);
extern void of_detach_node(struct device_node *);
#endif

#endif /* CONFIG_OF */
#endif /* _LINUX_OF_H */

0 comments on commit 9dfbf20

Please sign in to comment.