提交 9dfbf207 编写于 作者: J Jeremy Kerr 提交者: Grant Likely

of: protect linux/of.h with CONFIG_OF

For platforms that have CONFIG_OF optional, we need to make the contents
of linux/of.h conditional on CONFIG_OF.
Signed-off-by: NJeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: NMichal Simek <monstr@monstr.eu>
上级 7c540d9e
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <asm/byteorder.h> #include <asm/byteorder.h>
#ifdef CONFIG_OF
typedef u32 phandle; typedef u32 phandle;
typedef u32 ihandle; typedef u32 ihandle;
...@@ -194,4 +196,5 @@ extern void of_attach_node(struct device_node *); ...@@ -194,4 +196,5 @@ extern void of_attach_node(struct device_node *);
extern void of_detach_node(struct device_node *); extern void of_detach_node(struct device_node *);
#endif #endif
#endif /* CONFIG_OF */
#endif /* _LINUX_OF_H */ #endif /* _LINUX_OF_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册