From: Jeremy Kerr Date: Sun, 14 Feb 2010 14:13:43 +0000 (-0700) Subject: of: protect linux/of.h with CONFIG_OF X-Git-Tag: MMI-PSA29.97-13-9~24897^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9dfbf207802c7e8cda9d081a8d750b50633c82d2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Grant Likely Acked-by: Benjamin Herrenschmidt Acked-by: Michal Simek --- diff --git a/include/linux/of.h b/include/linux/of.h index 5c7b6a64acd9..48b0ee6d0f76 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -22,6 +22,8 @@ #include +#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 */