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>
Showing
- arch/arm/mach-mx25/devices-imx25.h 5 additions, 4 deletionsarch/arm/mach-mx25/devices-imx25.h
- arch/arm/mach-mx3/devices-imx35.h 5 additions, 4 deletionsarch/arm/mach-mx3/devices-imx35.h
- arch/arm/plat-mxc/devices/platform-flexcan.c 38 additions, 10 deletionsarch/arm/plat-mxc/devices/platform-flexcan.c
- arch/arm/plat-mxc/include/mach/devices-common.h 8 additions, 3 deletionsarch/arm/plat-mxc/include/mach/devices-common.h
Please register or sign in to comment