dmaengine: imx-sdma: use platform_device_id to identify sdma version
commit62550cd7c08f1a38d0ade1de18baec10f83412bb
authorShawn Guo <shawn.guo@linaro.org>
Wed, 13 Jul 2011 13:33:17 +0000 (13 21:33 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 27 Jul 2011 01:31:45 +0000 (27 09:31 +0800)
treee7e826885d6a1bf98acee27d35dd01fcb4cf8308
parentabfafc2d10ee2ad217be9ef06181819ca5dd6960
dmaengine: imx-sdma: use platform_device_id to identify sdma version

It might be not good to use software defined version to identify sdma
device type, when hardware does not define such version.  Instead,
soc name is stable enough to define the device type.

The patch uses platform_device_id rather than version number passed
by platform data to identify sdma device type/version.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Vinod Koul <vinod.koul@intel.com>
13 files changed:
arch/arm/mach-imx/clock-imx25.c
arch/arm/mach-imx/clock-imx31.c
arch/arm/mach-imx/clock-imx35.c
arch/arm/mach-imx/mm-imx25.c
arch/arm/mach-imx/mm-imx31.c
arch/arm/mach-imx/mm-imx35.c
arch/arm/mach-mx5/clock-mx51-mx53.c
arch/arm/mach-mx5/mm.c
arch/arm/plat-mxc/devices/platform-imx-dma.c
arch/arm/plat-mxc/include/mach/devices-common.h
arch/arm/plat-mxc/include/mach/dma.h
arch/arm/plat-mxc/include/mach/sdma.h
drivers/dma/imx-sdma.c