ARM: imx: change the way flexcan devices are registered
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 4 Nov 2010 11:02:35 +0000 (12:02 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 Nov 2010 09:01:26 +0000 (10:01 +0100)
commitfc40d0191943fa995f5359b5c23aa7c3dea69d7b
tree99d105dce9fd693b30dd3d577212838885d0c6a2
parente0a1961df8ad898b661cf0adcf3519254f135a44
ARM: imx: change the way flexcan devices are registered

Group soc specific data in a global struct instead of repeating it for each
call to imxXX_add_flexcanX.  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_flexcan.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/mach-mx25/devices-imx25.h
arch/arm/mach-mx3/devices-imx35.h
arch/arm/plat-mxc/devices/platform-flexcan.c
arch/arm/plat-mxc/include/mach/devices-common.h