From: Shawn Guo Date: Fri, 14 Sep 2012 07:19:00 +0000 (+0800) Subject: i2c: imx: remove cpu_is_xxx by using platform_device_id X-Git-Tag: omap-for-v3.8/cleanup-multiplatform-signed~19^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bdfba29f18f0a36df8e28328315213ea47eb529;p=pandora-kernel.git 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 Acked-by: Sascha Hauer Acked-by: Arnd Bergmann Cc: Wolfram Sang Cc: linux-i2c@vger.kernel.org --- Reading git-diff-tree failed