]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
of: remove CONFIG_OF_DEVICE
authorRob Herring <rob.herring@calxeda.com>
Fri, 19 Apr 2013 22:32:52 +0000 (17:32 -0500)
committerGrant Likely <grant.likely@linaro.org>
Wed, 12 Jun 2013 11:37:40 +0000 (12:37 +0100)
CONFIG_OF_DEVICE is always selected when CONFIG_OF is enabled, so remove
it and simplify of_platform.h and of_device.h headers. This also fixes
!OF compiles using of_platform_populate.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/Kconfig
drivers/of/Makefile
include/linux/of_device.h

index d37bfcf5a3a26560a9632930e996e11effabbbe5..80e5c13b930de507424d4549e2e968636a58bbaa 100644 (file)
@@ -48,9 +48,6 @@ config OF_IRQ
        def_bool y
        depends on !SPARC
 
-config OF_DEVICE
-       def_bool y
-
 config OF_I2C
        def_tristate I2C
        depends on I2C
index e027f444d10cfeae104eca088bf8c7824d88ba5f..1f9c0c492ef9f57b3e39a71db1dd551ad7b55bf1 100644 (file)
@@ -1,9 +1,8 @@
-obj-y = base.o
+obj-y = base.o device.o platform.o
 obj-$(CONFIG_OF_FLATTREE) += fdt.o
 obj-$(CONFIG_OF_PROMTREE) += pdt.o
 obj-$(CONFIG_OF_ADDRESS)  += address.o
 obj-$(CONFIG_OF_IRQ)    += irq.o
-obj-$(CONFIG_OF_DEVICE) += device.o platform.o
 obj-$(CONFIG_OF_I2C)   += of_i2c.o
 obj-$(CONFIG_OF_NET)   += of_net.o
 obj-$(CONFIG_OF_SELFTEST) += selftest.o
index 901b7435e890333027362b1ea89ba58b79578768..9d27475feec1768dab059a038d19af5ea10b67e2 100644 (file)
@@ -4,12 +4,12 @@
 #include <linux/platform_device.h>
 #include <linux/of_platform.h> /* temporary until merge */
 
-#ifdef CONFIG_OF_DEVICE
 #include <linux/of.h>
 #include <linux/mod_devicetable.h>
 
 struct device;
 
+#ifdef CONFIG_OF
 extern const struct of_device_id *of_match_device(
        const struct of_device_id *matches, const struct device *dev);
 extern void of_device_make_bus_id(struct device *dev);
@@ -43,7 +43,7 @@ static inline void of_device_node_put(struct device *dev)
        of_node_put(dev->of_node);
 }
 
-#else /* CONFIG_OF_DEVICE */
+#else /* CONFIG_OF */
 
 static inline int of_driver_match_device(struct device *dev,
                                         struct device_driver *drv)
@@ -67,6 +67,6 @@ static inline const struct of_device_id *of_match_device(
 {
        return NULL;
 }
-#endif /* CONFIG_OF_DEVICE */
+#endif /* CONFIG_OF */
 
 #endif /* _LINUX_OF_DEVICE_H */