diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-04-13 16:12:27 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-04-28 18:20:30 -0600 |
commit | efb2e014fc4f2675011b802e1a84bf9a58756004 (patch) | |
tree | 0992402c966154ba3105e5b7d9387df21754f2ac /include/linux/of_device.h | |
parent | 8bfe9b5c3a684fe39eb58a65e466c103d1c32c9a (diff) | |
download | linux-efb2e014fc4f2675011b802e1a84bf9a58756004.tar.gz linux-efb2e014fc4f2675011b802e1a84bf9a58756004.tar.bz2 linux-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_device.h')
-rw-r--r-- | include/linux/of_device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index d3a74e00a3e1..e7904a9cd3a3 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -1,6 +1,7 @@ #ifndef _LINUX_OF_DEVICE_H #define _LINUX_OF_DEVICE_H +#ifdef CONFIG_OF_DEVICE #include <linux/device.h> #include <linux/of.h> #include <linux/mod_devicetable.h> @@ -26,5 +27,6 @@ static inline void of_device_free(struct of_device *dev) extern ssize_t of_device_get_modalias(struct of_device *ofdev, char *str, ssize_t len); +#endif /* CONFIG_OF_DEVICE */ #endif /* _LINUX_OF_DEVICE_H */ |