Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dfbf207 authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Grant Likely
Browse files

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: default avatarJeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: default avatarMichal Simek <monstr@monstr.eu>
parent 7c540d9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 */