mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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: 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>
This commit is contained in:
parent
7c540d9e3d
commit
9dfbf20780
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
typedef u32 phandle;
|
||||
typedef u32 ihandle;
|
||||
|
||||
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue