ARM: mxc: clean up imx-dma device registration
commit3622360430e90d47a0d028dd5333a13771589331
authorShawn Guo <shawn.guo@linaro.org>
Wed, 22 Jun 2011 14:41:30 +0000 (22 22:41 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 7 Jul 2011 08:01:12 +0000 (7 10:01 +0200)
treea2a4df6d905d4157bf0e3cb5e5d6b3b5d481d0b6
parent8dd7b817a1135940406a3271346a4a8e39e2b87c
ARM: mxc: clean up imx-dma device registration

The patch follows the implementation of gpio-mxc device registration
to break the concentrated imx-dma device registration into soc
specific setup function.  Then we can avoid the churn of "#ifdef"
and the cpu_is_mx checking on such a long list, which makes no sense,
considering more soc supports need to be added and we need to support
single image for multiple socs in the long run.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mm-imx21.c
arch/arm/mach-imx/mm-imx25.c
arch/arm/mach-imx/mm-imx27.c
arch/arm/mach-imx/mm-imx31.c
arch/arm/mach-imx/mm-imx35.c
arch/arm/mach-mx5/mm.c
arch/arm/plat-mxc/devices.c
arch/arm/plat-mxc/devices/platform-imx-dma.c
arch/arm/plat-mxc/include/mach/devices-common.h