diff options
-rw-r--r-- | drivers/of/Kconfig | 3 | ||||
-rw-r--r-- | drivers/of/Makefile | 3 | ||||
-rw-r--r-- | include/linux/of_device.h | 6 |
3 files changed, 4 insertions, 8 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index d37bfcf5a3a2..80e5c13b930d 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig | |||
@@ -48,9 +48,6 @@ config OF_IRQ | |||
48 | def_bool y | 48 | def_bool y |
49 | depends on !SPARC | 49 | depends on !SPARC |
50 | 50 | ||
51 | config OF_DEVICE | ||
52 | def_bool y | ||
53 | |||
54 | config OF_I2C | 51 | config OF_I2C |
55 | def_tristate I2C | 52 | def_tristate I2C |
56 | depends on I2C | 53 | depends on I2C |
diff --git a/drivers/of/Makefile b/drivers/of/Makefile index e027f444d10c..1f9c0c492ef9 100644 --- a/drivers/of/Makefile +++ b/drivers/of/Makefile | |||
@@ -1,9 +1,8 @@ | |||
1 | obj-y = base.o | 1 | obj-y = base.o device.o platform.o |
2 | obj-$(CONFIG_OF_FLATTREE) += fdt.o | 2 | obj-$(CONFIG_OF_FLATTREE) += fdt.o |
3 | obj-$(CONFIG_OF_PROMTREE) += pdt.o | 3 | obj-$(CONFIG_OF_PROMTREE) += pdt.o |
4 | obj-$(CONFIG_OF_ADDRESS) += address.o | 4 | obj-$(CONFIG_OF_ADDRESS) += address.o |
5 | obj-$(CONFIG_OF_IRQ) += irq.o | 5 | obj-$(CONFIG_OF_IRQ) += irq.o |
6 | obj-$(CONFIG_OF_DEVICE) += device.o platform.o | ||
7 | obj-$(CONFIG_OF_I2C) += of_i2c.o | 6 | obj-$(CONFIG_OF_I2C) += of_i2c.o |
8 | obj-$(CONFIG_OF_NET) += of_net.o | 7 | obj-$(CONFIG_OF_NET) += of_net.o |
9 | obj-$(CONFIG_OF_SELFTEST) += selftest.o | 8 | obj-$(CONFIG_OF_SELFTEST) += selftest.o |
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index 901b7435e890..9d27475feec1 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h | |||
@@ -4,12 +4,12 @@ | |||
4 | #include <linux/platform_device.h> | 4 | #include <linux/platform_device.h> |
5 | #include <linux/of_platform.h> /* temporary until merge */ | 5 | #include <linux/of_platform.h> /* temporary until merge */ |
6 | 6 | ||
7 | #ifdef CONFIG_OF_DEVICE | ||
8 | #include <linux/of.h> | 7 | #include <linux/of.h> |
9 | #include <linux/mod_devicetable.h> | 8 | #include <linux/mod_devicetable.h> |
10 | 9 | ||
11 | struct device; | 10 | struct device; |
12 | 11 | ||
12 | #ifdef CONFIG_OF | ||
13 | extern const struct of_device_id *of_match_device( | 13 | extern const struct of_device_id *of_match_device( |
14 | const struct of_device_id *matches, const struct device *dev); | 14 | const struct of_device_id *matches, const struct device *dev); |
15 | extern void of_device_make_bus_id(struct device *dev); | 15 | extern void of_device_make_bus_id(struct device *dev); |
@@ -43,7 +43,7 @@ static inline void of_device_node_put(struct device *dev) | |||
43 | of_node_put(dev->of_node); | 43 | of_node_put(dev->of_node); |
44 | } | 44 | } |
45 | 45 | ||
46 | #else /* CONFIG_OF_DEVICE */ | 46 | #else /* CONFIG_OF */ |
47 | 47 | ||
48 | static inline int of_driver_match_device(struct device *dev, | 48 | static inline int of_driver_match_device(struct device *dev, |
49 | struct device_driver *drv) | 49 | struct device_driver *drv) |
@@ -67,6 +67,6 @@ static inline const struct of_device_id *of_match_device( | |||
67 | { | 67 | { |
68 | return NULL; | 68 | return NULL; |
69 | } | 69 | } |
70 | #endif /* CONFIG_OF_DEVICE */ | 70 | #endif /* CONFIG_OF */ |
71 | 71 | ||
72 | #endif /* _LINUX_OF_DEVICE_H */ | 72 | #endif /* _LINUX_OF_DEVICE_H */ |