diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-09-14 03:19:00 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-10-14 22:03:15 -0400 |
commit | 5bdfba29f18f0a36df8e28328315213ea47eb529 (patch) | |
tree | 6c35d12ded1ee1c2fafd8eaada320d926651d1a3 /arch/arm/boot/dts/imx6q.dtsi | |
parent | 881994638c4033815dcdd26f43d209e83760d493 (diff) |
i2c: imx: remove cpu_is_xxx by using platform_device_id
This is some amount of work left/forgot from device tree conversion.
Instead of checking cpu_is_xxx to determine the controller type, the
driver should use platform_device_id, which should match the device
tree compatible string.
The patch changes the driver to use platform_device_id rather than
cpu_is_xxx to determine the controller type/version. It also updates
the platform code and device tree source accordingly.
As the result, mach/hardware.h inclusion gets removed from the driver.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: linux-i2c@vger.kernel.org
Diffstat (limited to 'arch/arm/boot/dts/imx6q.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx6q.dtsi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index f3990b04fecf..f604a44a5c66 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi | |||
@@ -882,7 +882,7 @@ | |||
882 | i2c@021a0000 { /* I2C1 */ | 882 | i2c@021a0000 { /* I2C1 */ |
883 | #address-cells = <1>; | 883 | #address-cells = <1>; |
884 | #size-cells = <0>; | 884 | #size-cells = <0>; |
885 | compatible = "fsl,imx6q-i2c", "fsl,imx1-i2c"; | 885 | compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c"; |
886 | reg = <0x021a0000 0x4000>; | 886 | reg = <0x021a0000 0x4000>; |
887 | interrupts = <0 36 0x04>; | 887 | interrupts = <0 36 0x04>; |
888 | clocks = <&clks 125>; | 888 | clocks = <&clks 125>; |
@@ -892,7 +892,7 @@ | |||
892 | i2c@021a4000 { /* I2C2 */ | 892 | i2c@021a4000 { /* I2C2 */ |
893 | #address-cells = <1>; | 893 | #address-cells = <1>; |
894 | #size-cells = <0>; | 894 | #size-cells = <0>; |
895 | compatible = "fsl,imx6q-i2c", "fsl,imx1-i2c"; | 895 | compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c"; |
896 | reg = <0x021a4000 0x4000>; | 896 | reg = <0x021a4000 0x4000>; |
897 | interrupts = <0 37 0x04>; | 897 | interrupts = <0 37 0x04>; |
898 | clocks = <&clks 126>; | 898 | clocks = <&clks 126>; |
@@ -902,7 +902,7 @@ | |||
902 | i2c@021a8000 { /* I2C3 */ | 902 | i2c@021a8000 { /* I2C3 */ |
903 | #address-cells = <1>; | 903 | #address-cells = <1>; |
904 | #size-cells = <0>; | 904 | #size-cells = <0>; |
905 | compatible = "fsl,imx6q-i2c", "fsl,imx1-i2c"; | 905 | compatible = "fsl,imx6q-i2c", "fsl,imx21-i2c"; |
906 | reg = <0x021a8000 0x4000>; | 906 | reg = <0x021a8000 0x4000>; |
907 | interrupts = <0 38 0x04>; | 907 | interrupts = <0 38 0x04>; |
908 | clocks = <&clks 127>; | 908 | clocks = <&clks 127>; |