summaryrefslogtreecommitdiff
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-04-13 16:12:27 -0700
committerGrant Likely <grant.likely@secretlab.ca>2010-04-28 18:20:30 -0600
commitefb2e014fc4f2675011b802e1a84bf9a58756004 (patch)
tree0992402c966154ba3105e5b7d9387df21754f2ac /include/linux/of_platform.h
parent8bfe9b5c3a684fe39eb58a65e466c103d1c32c9a (diff)
downloadlwn-efb2e014fc4f2675011b802e1a84bf9a58756004.tar.gz
lwn-efb2e014fc4f2675011b802e1a84bf9a58756004.zip
of: protect contents of of_platform.h and of_device.h
Only process contents of of_platform.h and of_device.h if CONFIG_OF_DEVICE is set. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r--include/linux/of_platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 908406651330..ac3ae0758fbe 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -11,6 +11,7 @@
*
*/
+#ifdef CONFIG_OF_DEVICE
#include <linux/module.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>
@@ -66,5 +67,6 @@ static inline void of_unregister_platform_driver(struct of_platform_driver *drv)
extern struct of_device *of_find_device_by_node(struct device_node *np);
extern int of_bus_type_init(struct bus_type *bus, const char *name);
+#endif /* CONFIG_OF_DEVICE */
#endif /* _LINUX_OF_PLATFORM_H */