i2c: imx: remove cpu_is_xxx by using platform_device_id
commit5bdfba29f18f0a36df8e28328315213ea47eb529
authorShawn Guo <shawn.guo@linaro.org>
Fri, 14 Sep 2012 07:19:00 +0000 (14 15:19 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 15 Oct 2012 02:03:15 +0000 (15 10:03 +0800)
tree6c35d12ded1ee1c2fafd8eaada320d926651d1a3
parent881994638c4033815dcdd26f43d209e83760d493
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
18 files changed:
Documentation/devicetree/bindings/i2c/fsl-imx-i2c.txt
arch/arm/boot/dts/imx27.dtsi
arch/arm/boot/dts/imx51.dtsi
arch/arm/boot/dts/imx53.dtsi
arch/arm/boot/dts/imx6q.dtsi
arch/arm/mach-imx/clk-imx1.c
arch/arm/mach-imx/clk-imx21.c
arch/arm/mach-imx/clk-imx25.c
arch/arm/mach-imx/clk-imx27.c
arch/arm/mach-imx/clk-imx31.c
arch/arm/mach-imx/clk-imx35.c
arch/arm/mach-imx/clk-imx51-imx53.c
arch/arm/mach-imx/devices/devices-common.h
arch/arm/mach-imx/devices/platform-imx-i2c.c
arch/arm/mach-imx/imx27-dt.c
arch/arm/mach-imx/imx51-dt.c
arch/arm/mach-imx/mach-imx53.c
drivers/i2c/busses/i2c-imx.c