ARM: imx: change the way spi-imx devices are registered
commit35bab0589b9a71533b37280eefa430c21dc102fe
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 9 Sep 2010 19:02:02 +0000 (9 21:02 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 27 Sep 2010 13:46:31 +0000 (27 15:46 +0200)
tree891a4b6c506f46ed596272d34d65e6d4990e459a
parenta8a05b855291defb1d97a1c3681480e4ca330254
ARM: imx: change the way spi-imx devices are registered

Group soc specific data in a global struct instead of repeating it for
each call to imxXX_add_spi_imxX.  The structs holding the actual data
are placed in .init.constdata and so don't do much harm.  Compared to
the previous approach this reduces code size to call imx_add_spi_imx.

Acked-by: Jason Wang <jason77.wang@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/mach-imx/devices-imx21.h
arch/arm/mach-imx/devices-imx27.h
arch/arm/mach-mx25/devices-imx25.h
arch/arm/mach-mx3/devices-imx31.h
arch/arm/mach-mx3/devices-imx35.h
arch/arm/plat-mxc/devices/platform-spi_imx.c
arch/arm/plat-mxc/include/mach/devices-common.h