diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/platform.c | 3 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/ehea/ehea_main.c | 8 | ||||
-rw-r--r-- | drivers/of/Kconfig | 3 | ||||
-rw-r--r-- | drivers/of/Makefile | 3 | ||||
-rw-r--r-- | drivers/of/address.c | 8 | ||||
-rw-r--r-- | drivers/of/base.c | 12 | ||||
-rw-r--r-- | drivers/usb/chipidea/Makefile | 2 |
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 */ |
30 | static DEFINE_IDA(platform_devid_ida); | 30 | static DEFINE_IDA(platform_devid_ida); |
31 | 31 | ||
32 | #define to_platform_driver(drv) (container_of((drv), struct platform_driver, \ | ||
33 | driver)) | ||
34 | |||
35 | struct device platform_bus = { | 32 | struct 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 | ||
716 | static int ehca_probe(struct platform_device *dev, | 716 | static 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 | }; |
938 | MODULE_DEVICE_TABLE(of, ehca_device_table); | 937 | MODULE_DEVICE_TABLE(of, ehca_device_table); |
939 | 938 | ||
940 | static struct of_platform_driver ehca_driver = { | 939 | static 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; | |||
98 | static struct ehea_bcmc_reg_array ehea_bcmc_regs; | 98 | static struct ehea_bcmc_reg_array ehea_bcmc_regs; |
99 | 99 | ||
100 | 100 | ||
101 | static int ehea_probe_adapter(struct platform_device *dev, | 101 | static int ehea_probe_adapter(struct platform_device *dev); |
102 | const struct of_device_id *id); | ||
103 | 102 | ||
104 | static int ehea_remove(struct platform_device *dev); | 103 | static int ehea_remove(struct platform_device *dev); |
105 | 104 | ||
@@ -112,7 +111,7 @@ static struct of_device_id ehea_device_table[] = { | |||
112 | }; | 111 | }; |
113 | MODULE_DEVICE_TABLE(of, ehea_device_table); | 112 | MODULE_DEVICE_TABLE(of, ehea_device_table); |
114 | 113 | ||
115 | static struct of_platform_driver ehea_driver = { | 114 | static 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 | ||
3254 | static int ehea_probe_adapter(struct platform_device *dev, | 3253 | static 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 | ||
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/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 | ||
107 | static int of_bus_pci_match(struct device_node *np) | 107 | static 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 | ||
113 | static void of_bus_pci_count_cells(struct device_node *np, | 117 | static 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 | */ |
828 | int of_property_read_u8_array(const struct device_node *np, | 828 | int 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 | */ |
861 | int of_property_read_u16_array(const struct device_node *np, | 861 | int 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 | */ |
892 | int of_property_read_u32_array(const struct device_node *np, | 892 | int 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 |
17 | endif | 17 | endif |
18 | 18 | ||
19 | ifneq ($(CONFIG_OF_DEVICE),) | 19 | ifneq ($(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 |
21 | endif | 21 | endif |