aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-04 12:07:48 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-17 04:01:27 -0500
commitad851bffba6afd6468f96a6180cc4a14e9ebee38 (patch)
treebb42d6c8e6493cb29690f1f44abc224b338a163f /arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
parentfc40d0191943fa995f5359b5c23aa7c3dea69d7b (diff)
ARM: imx: dynamically register imx-fb devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/eukrea_mbimx27-baseboard.c')
-rw-r--r--arch/arm/mach-imx/eukrea_mbimx27-baseboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
index 026263c665ca..a226e2540ebd 100644
--- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
+++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
@@ -32,7 +32,6 @@
32 32
33#include <mach/common.h> 33#include <mach/common.h>
34#include <mach/iomux-mx27.h> 34#include <mach/iomux-mx27.h>
35#include <mach/imxfb.h>
36#include <mach/hardware.h> 35#include <mach/hardware.h>
37#include <mach/mmc.h> 36#include <mach/mmc.h>
38#include <mach/spi.h> 37#include <mach/spi.h>
@@ -196,7 +195,7 @@ static struct imx_fb_videomode eukrea_mbimx27_modes[] = {
196 }, 195 },
197}; 196};
198 197
199static struct imx_fb_platform_data eukrea_mbimx27_fb_data = { 198static const struct imx_fb_platform_data eukrea_mbimx27_fb_data __initconst = {
200 .mode = eukrea_mbimx27_modes, 199 .mode = eukrea_mbimx27_modes,
201 .num_modes = ARRAY_SIZE(eukrea_mbimx27_modes), 200 .num_modes = ARRAY_SIZE(eukrea_mbimx27_modes),
202 201
@@ -351,7 +350,7 @@ void __init eukrea_mbimx27_baseboard_init(void)
351 imx27_add_imx_uart3(&uart_pdata); 350 imx27_add_imx_uart3(&uart_pdata);
352#endif 351#endif
353 352
354 mxc_register_device(&mxc_fb_device, &eukrea_mbimx27_fb_data); 353 imx27_add_imx_fb(&eukrea_mbimx27_fb_data);
355 mxc_register_device(&mxc_sdhc_device0, &sdhc_pdata); 354 mxc_register_device(&mxc_sdhc_device0, &sdhc_pdata);
356 355
357 i2c_register_board_info(0, eukrea_mbimx27_i2c_devices, 356 i2c_register_board_info(0, eukrea_mbimx27_i2c_devices,