diff options
Diffstat (limited to 'include/linux/of_platform.h')
| -rw-r--r-- | include/linux/of_platform.h | 2 |
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 @@ | |||
| 11 | * | 11 | * |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_OF_DEVICE | ||
| 14 | #include <linux/module.h> | 15 | #include <linux/module.h> |
| 15 | #include <linux/device.h> | 16 | #include <linux/device.h> |
| 16 | #include <linux/mod_devicetable.h> | 17 | #include <linux/mod_devicetable.h> |
| @@ -66,5 +67,6 @@ static inline void of_unregister_platform_driver(struct of_platform_driver *drv) | |||
| 66 | extern struct of_device *of_find_device_by_node(struct device_node *np); | 67 | extern struct of_device *of_find_device_by_node(struct device_node *np); |
| 67 | 68 | ||
| 68 | extern int of_bus_type_init(struct bus_type *bus, const char *name); | 69 | extern int of_bus_type_init(struct bus_type *bus, const char *name); |
| 70 | #endif /* CONFIG_OF_DEVICE */ | ||
| 69 | 71 | ||
| 70 | #endif /* _LINUX_OF_PLATFORM_H */ | 72 | #endif /* _LINUX_OF_PLATFORM_H */ |
