diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 18:51:45 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 18:51:45 -0400 |
| commit | 74b9272bbedf45cb01a048217830d64d59aaa73b (patch) | |
| tree | 11cf66b529d4861edd03d16f97c8178e9cfd9f77 /drivers/of | |
| parent | f5b63ac0f77ecab46796ba5d368ea5dd51834e6e (diff) | |
| parent | 6dd18e4684f3d188277bbbc27545248487472108 (diff) | |
Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
Pull device tree updates from Grant Likely:
"This branch contains the following changes:
- Removal of CONFIG_OF_DEVICE, it is always enabled by CONFIG_OF
- Remove #ifdef from linux/of_platform.h to increase compiler syntax
coverage
- Bug fix for address decoding on Bimini and js2x powerpc platforms.
- miscellaneous binding changes
One note on the above. The binding changes going in from all kinds of
different trees has gotten rather out of hand. I picked up some
during this cycle, but even going though my tree isn't a great fit.
Ian Campbell has prototyped splitting the bindings and .dtb files into
a separate repository. The plan is to migrate to using that sometime
in the next few kernel releases which should get rid of a lot of the
churn on binding docs and .dts files"
* tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux:
of: Fix address decoding on Bimini and js2x machines
of: remove CONFIG_OF_DEVICE
usb: chipidea: depend on CONFIG_OF instead of CONFIG_OF_DEVICE
of: remove of_platform_driver
ibmebus: convert of_platform_driver to platform_driver
driver core: move to_platform_driver to platform_device.h
mfd: DT bindings for the palmas family MFD
ARM: dts: omap3-devkit8000: fix NAND memory binding
of/base: fix typos
of: remove #ifdef from linux/of_platform.h
Diffstat (limited to 'drivers/of')
| -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 |
4 files changed, 13 insertions, 13 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/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, |
