aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/platform.c3
-rw-r--r--drivers/infiniband/hw/ehca/ehca_main.c5
-rw-r--r--drivers/net/ethernet/ibm/ehea/ehea_main.c8
-rw-r--r--drivers/of/Kconfig3
-rw-r--r--drivers/of/Makefile3
-rw-r--r--drivers/of/address.c8
-rw-r--r--drivers/of/base.c12
-rw-r--r--drivers/usb/chipidea/Makefile2
8 files changed, 19 insertions, 25 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 6eaa7ab9e4bc..15789875128e 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -29,9 +29,6 @@
29/* For automatically allocated device IDs */ 29/* For automatically allocated device IDs */
30static DEFINE_IDA(platform_devid_ida); 30static DEFINE_IDA(platform_devid_ida);
31 31
32#define to_platform_driver(drv) (container_of((drv), struct platform_driver, \
33 driver))
34
35struct device platform_bus = { 32struct device platform_bus = {
36 .init_name = "platform", 33 .init_name = "platform",
37}; 34};
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
index f8a62918a88d..982e3efd98d3 100644
--- a/drivers/infiniband/hw/ehca/ehca_main.c
+++ b/drivers/infiniband/hw/ehca/ehca_main.c
@@ -713,8 +713,7 @@ static struct attribute_group ehca_dev_attr_grp = {
713 .attrs = ehca_dev_attrs 713 .attrs = ehca_dev_attrs
714}; 714};
715 715
716static int ehca_probe(struct platform_device *dev, 716static int ehca_probe(struct platform_device *dev)
717 const struct of_device_id *id)
718{ 717{
719 struct ehca_shca *shca; 718 struct ehca_shca *shca;
720 const u64 *handle; 719 const u64 *handle;
@@ -937,7 +936,7 @@ static struct of_device_id ehca_device_table[] =
937}; 936};
938MODULE_DEVICE_TABLE(of, ehca_device_table); 937MODULE_DEVICE_TABLE(of, ehca_device_table);
939 938
940static struct of_platform_driver ehca_driver = { 939static struct platform_driver ehca_driver = {
941 .probe = ehca_probe, 940 .probe = ehca_probe,
942 .remove = ehca_remove, 941 .remove = ehca_remove,
943 .driver = { 942 .driver = {
diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c
index 90ea0b1673ca..de2969cae262 100644
--- a/drivers/net/ethernet/ibm/ehea/ehea_main.c
+++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c
@@ -98,8 +98,7 @@ static struct ehea_fw_handle_array ehea_fw_handles;
98static struct ehea_bcmc_reg_array ehea_bcmc_regs; 98static struct ehea_bcmc_reg_array ehea_bcmc_regs;
99 99
100 100
101static int ehea_probe_adapter(struct platform_device *dev, 101static int ehea_probe_adapter(struct platform_device *dev);
102 const struct of_device_id *id);
103 102
104static int ehea_remove(struct platform_device *dev); 103static int ehea_remove(struct platform_device *dev);
105 104
@@ -112,7 +111,7 @@ static struct of_device_id ehea_device_table[] = {
112}; 111};
113MODULE_DEVICE_TABLE(of, ehea_device_table); 112MODULE_DEVICE_TABLE(of, ehea_device_table);
114 113
115static struct of_platform_driver ehea_driver = { 114static struct platform_driver ehea_driver = {
116 .driver = { 115 .driver = {
117 .name = "ehea", 116 .name = "ehea",
118 .owner = THIS_MODULE, 117 .owner = THIS_MODULE,
@@ -3251,8 +3250,7 @@ static void ehea_remove_device_sysfs(struct platform_device *dev)
3251 device_remove_file(&dev->dev, &dev_attr_remove_port); 3250 device_remove_file(&dev->dev, &dev_attr_remove_port);
3252} 3251}
3253 3252
3254static int ehea_probe_adapter(struct platform_device *dev, 3253static int ehea_probe_adapter(struct platform_device *dev)
3255 const struct of_device_id *id)
3256{ 3254{
3257 struct ehea_adapter *adapter; 3255 struct ehea_adapter *adapter;
3258 const u64 *adapter_handle; 3256 const u64 *adapter_handle;
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
51config OF_DEVICE
52 def_bool y
53
54config OF_I2C 51config 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 @@
1obj-y = base.o 1obj-y = base.o device.o platform.o
2obj-$(CONFIG_OF_FLATTREE) += fdt.o 2obj-$(CONFIG_OF_FLATTREE) += fdt.o
3obj-$(CONFIG_OF_PROMTREE) += pdt.o 3obj-$(CONFIG_OF_PROMTREE) += pdt.o
4obj-$(CONFIG_OF_ADDRESS) += address.o 4obj-$(CONFIG_OF_ADDRESS) += address.o
5obj-$(CONFIG_OF_IRQ) += irq.o 5obj-$(CONFIG_OF_IRQ) += irq.o
6obj-$(CONFIG_OF_DEVICE) += device.o platform.o
7obj-$(CONFIG_OF_I2C) += of_i2c.o 6obj-$(CONFIG_OF_I2C) += of_i2c.o
8obj-$(CONFIG_OF_NET) += of_net.o 7obj-$(CONFIG_OF_NET) += of_net.o
9obj-$(CONFIG_OF_SELFTEST) += selftest.o 8obj-$(CONFIG_OF_SELFTEST) += selftest.o
diff --git a/drivers/of/address.c b/drivers/of/address.c
index fdd0636a987d..b55c21890760 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -106,8 +106,12 @@ static unsigned int of_bus_default_get_flags(const __be32 *addr)
106 106
107static int of_bus_pci_match(struct device_node *np) 107static int of_bus_pci_match(struct device_node *np)
108{ 108{
109 /* "vci" is for the /chaos bridge on 1st-gen PCI powermacs */ 109 /*
110 return !strcmp(np->type, "pci") || !strcmp(np->type, "vci"); 110 * "vci" is for the /chaos bridge on 1st-gen PCI powermacs
111 * "ht" is hypertransport
112 */
113 return !strcmp(np->type, "pci") || !strcmp(np->type, "vci") ||
114 !strcmp(np->type, "ht");
111} 115}
112 116
113static void of_bus_pci_count_cells(struct device_node *np, 117static void of_bus_pci_count_cells(struct device_node *np,
diff --git a/drivers/of/base.c b/drivers/of/base.c
index a6f584a7f4a1..5c5427918eb2 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -812,7 +812,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_index);
812 * 812 *
813 * @np: device node from which the property value is to be read. 813 * @np: device node from which the property value is to be read.
814 * @propname: name of the property to be searched. 814 * @propname: name of the property to be searched.
815 * @out_value: pointer to return value, modified only if return value is 0. 815 * @out_values: pointer to return value, modified only if return value is 0.
816 * @sz: number of array elements to read 816 * @sz: number of array elements to read
817 * 817 *
818 * Search for a property in a device node and read 8-bit value(s) from 818 * Search for a property in a device node and read 8-bit value(s) from
@@ -823,7 +823,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_index);
823 * dts entry of array should be like: 823 * dts entry of array should be like:
824 * property = /bits/ 8 <0x50 0x60 0x70>; 824 * property = /bits/ 8 <0x50 0x60 0x70>;
825 * 825 *
826 * The out_value is modified only if a valid u8 value can be decoded. 826 * The out_values is modified only if a valid u8 value can be decoded.
827 */ 827 */
828int of_property_read_u8_array(const struct device_node *np, 828int of_property_read_u8_array(const struct device_node *np,
829 const char *propname, u8 *out_values, size_t sz) 829 const char *propname, u8 *out_values, size_t sz)
@@ -845,7 +845,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u8_array);
845 * 845 *
846 * @np: device node from which the property value is to be read. 846 * @np: device node from which the property value is to be read.
847 * @propname: name of the property to be searched. 847 * @propname: name of the property to be searched.
848 * @out_value: pointer to return value, modified only if return value is 0. 848 * @out_values: pointer to return value, modified only if return value is 0.
849 * @sz: number of array elements to read 849 * @sz: number of array elements to read
850 * 850 *
851 * Search for a property in a device node and read 16-bit value(s) from 851 * Search for a property in a device node and read 16-bit value(s) from
@@ -856,7 +856,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u8_array);
856 * dts entry of array should be like: 856 * dts entry of array should be like:
857 * property = /bits/ 16 <0x5000 0x6000 0x7000>; 857 * property = /bits/ 16 <0x5000 0x6000 0x7000>;
858 * 858 *
859 * The out_value is modified only if a valid u16 value can be decoded. 859 * The out_values is modified only if a valid u16 value can be decoded.
860 */ 860 */
861int of_property_read_u16_array(const struct device_node *np, 861int of_property_read_u16_array(const struct device_node *np,
862 const char *propname, u16 *out_values, size_t sz) 862 const char *propname, u16 *out_values, size_t sz)
@@ -879,7 +879,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u16_array);
879 * 879 *
880 * @np: device node from which the property value is to be read. 880 * @np: device node from which the property value is to be read.
881 * @propname: name of the property to be searched. 881 * @propname: name of the property to be searched.
882 * @out_value: pointer to return value, modified only if return value is 0. 882 * @out_values: pointer to return value, modified only if return value is 0.
883 * @sz: number of array elements to read 883 * @sz: number of array elements to read
884 * 884 *
885 * Search for a property in a device node and read 32-bit value(s) from 885 * Search for a property in a device node and read 32-bit value(s) from
@@ -887,7 +887,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u16_array);
887 * -ENODATA if property does not have a value, and -EOVERFLOW if the 887 * -ENODATA if property does not have a value, and -EOVERFLOW if the
888 * property data isn't large enough. 888 * property data isn't large enough.
889 * 889 *
890 * The out_value is modified only if a valid u32 value can be decoded. 890 * The out_values is modified only if a valid u32 value can be decoded.
891 */ 891 */
892int of_property_read_u32_array(const struct device_node *np, 892int of_property_read_u32_array(const struct device_node *np,
893 const char *propname, u32 *out_values, 893 const char *propname, u32 *out_values,
diff --git a/drivers/usb/chipidea/Makefile b/drivers/usb/chipidea/Makefile
index 3bbbcba03815..6cf5f68dedd8 100644
--- a/drivers/usb/chipidea/Makefile
+++ b/drivers/usb/chipidea/Makefile
@@ -16,6 +16,6 @@ ifneq ($(CONFIG_PCI),)
16 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o 16 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o
17endif 17endif
18 18
19ifneq ($(CONFIG_OF_DEVICE),) 19ifneq ($(CONFIG_OF),)
20 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_imx.o usbmisc_imx.o 20 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_imx.o usbmisc_imx.o
21endif 21endif