diff options
| -rw-r--r-- | Documentation/devicetree/bindings/spi/spi-ath79.txt | 6 | ||||
| -rw-r--r-- | drivers/of/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/of/unittest.c | 3 | ||||
| -rw-r--r-- | include/linux/of_device.h | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-ath79.txt b/Documentation/devicetree/bindings/spi/spi-ath79.txt index f1ad9c367532..9c696fa66f81 100644 --- a/Documentation/devicetree/bindings/spi/spi-ath79.txt +++ b/Documentation/devicetree/bindings/spi/spi-ath79.txt | |||
| @@ -3,7 +3,7 @@ Binding for Qualcomm Atheros AR7xxx/AR9xxx SPI controller | |||
| 3 | Required properties: | 3 | Required properties: |
| 4 | - compatible: has to be "qca,<soc-type>-spi", "qca,ar7100-spi" as fallback. | 4 | - compatible: has to be "qca,<soc-type>-spi", "qca,ar7100-spi" as fallback. |
| 5 | - reg: Base address and size of the controllers memory area | 5 | - reg: Base address and size of the controllers memory area |
| 6 | - clocks: phandle to the AHB clock. | 6 | - clocks: phandle of the AHB clock. |
| 7 | - clock-names: has to be "ahb". | 7 | - clock-names: has to be "ahb". |
| 8 | - #address-cells: <1>, as required by generic SPI binding. | 8 | - #address-cells: <1>, as required by generic SPI binding. |
| 9 | - #size-cells: <0>, also as required by generic SPI binding. | 9 | - #size-cells: <0>, also as required by generic SPI binding. |
| @@ -12,9 +12,9 @@ Child nodes as per the generic SPI binding. | |||
| 12 | 12 | ||
| 13 | Example: | 13 | Example: |
| 14 | 14 | ||
| 15 | spi@1F000000 { | 15 | spi@1f000000 { |
| 16 | compatible = "qca,ar9132-spi", "qca,ar7100-spi"; | 16 | compatible = "qca,ar9132-spi", "qca,ar7100-spi"; |
| 17 | reg = <0x1F000000 0x10>; | 17 | reg = <0x1f000000 0x10>; |
| 18 | 18 | ||
| 19 | clocks = <&pll 2>; | 19 | clocks = <&pll 2>; |
| 20 | clock-names = "ahb"; | 20 | clock-names = "ahb"; |
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 8df1b1777745..59bb8556e43a 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig | |||
| @@ -47,7 +47,7 @@ config OF_DYNAMIC | |||
| 47 | 47 | ||
| 48 | config OF_ADDRESS | 48 | config OF_ADDRESS |
| 49 | def_bool y | 49 | def_bool y |
| 50 | depends on !SPARC | 50 | depends on !SPARC && HAS_IOMEM |
| 51 | select OF_ADDRESS_PCI if PCI | 51 | select OF_ADDRESS_PCI if PCI |
| 52 | 52 | ||
| 53 | config OF_ADDRESS_PCI | 53 | config OF_ADDRESS_PCI |
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 18016341d5a9..9f71770b6226 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c | |||
| @@ -979,7 +979,6 @@ static struct platform_driver unittest_driver = { | |||
| 979 | .remove = unittest_remove, | 979 | .remove = unittest_remove, |
| 980 | .driver = { | 980 | .driver = { |
| 981 | .name = "unittest", | 981 | .name = "unittest", |
| 982 | .owner = THIS_MODULE, | ||
| 983 | .of_match_table = of_match_ptr(unittest_match), | 982 | .of_match_table = of_match_ptr(unittest_match), |
| 984 | }, | 983 | }, |
| 985 | }; | 984 | }; |
| @@ -1666,7 +1665,6 @@ static const struct i2c_device_id unittest_i2c_dev_id[] = { | |||
| 1666 | static struct i2c_driver unittest_i2c_dev_driver = { | 1665 | static struct i2c_driver unittest_i2c_dev_driver = { |
| 1667 | .driver = { | 1666 | .driver = { |
| 1668 | .name = "unittest-i2c-dev", | 1667 | .name = "unittest-i2c-dev", |
| 1669 | .owner = THIS_MODULE, | ||
| 1670 | }, | 1668 | }, |
| 1671 | .probe = unittest_i2c_dev_probe, | 1669 | .probe = unittest_i2c_dev_probe, |
| 1672 | .remove = unittest_i2c_dev_remove, | 1670 | .remove = unittest_i2c_dev_remove, |
| @@ -1761,7 +1759,6 @@ static const struct i2c_device_id unittest_i2c_mux_id[] = { | |||
| 1761 | static struct i2c_driver unittest_i2c_mux_driver = { | 1759 | static struct i2c_driver unittest_i2c_mux_driver = { |
| 1762 | .driver = { | 1760 | .driver = { |
| 1763 | .name = "unittest-i2c-mux", | 1761 | .name = "unittest-i2c-mux", |
| 1764 | .owner = THIS_MODULE, | ||
| 1765 | }, | 1762 | }, |
| 1766 | .probe = unittest_i2c_mux_probe, | 1763 | .probe = unittest_i2c_mux_probe, |
| 1767 | .remove = unittest_i2c_mux_remove, | 1764 | .remove = unittest_i2c_mux_remove, |
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index 4c508549833a..cc7dd687a89d 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h | |||
| @@ -59,7 +59,7 @@ void of_dma_configure(struct device *dev, struct device_node *np); | |||
| 59 | #else /* CONFIG_OF */ | 59 | #else /* CONFIG_OF */ |
| 60 | 60 | ||
| 61 | static inline int of_driver_match_device(struct device *dev, | 61 | static inline int of_driver_match_device(struct device *dev, |
| 62 | struct device_driver *drv) | 62 | const struct device_driver *drv) |
| 63 | { | 63 | { |
| 64 | return 0; | 64 | return 0; |
| 65 | } | 65 | } |
