diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-04 12:07:48 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:27 -0500 |
commit | ad851bffba6afd6468f96a6180cc4a14e9ebee38 (patch) | |
tree | bb42d6c8e6493cb29690f1f44abc224b338a163f /arch/arm/mach-imx/mach-mx27ads.c | |
parent | fc40d0191943fa995f5359b5c23aa7c3dea69d7b (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/mach-mx27ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27ads.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index 219899a5c8ab..d97b25bffe7b 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <mach/gpio.h> | 30 | #include <mach/gpio.h> |
31 | #include <mach/iomux-mx27.h> | 31 | #include <mach/iomux-mx27.h> |
32 | #include <mach/mxc_nand.h> | 32 | #include <mach/mxc_nand.h> |
33 | #include <mach/imxfb.h> | ||
34 | #include <mach/mmc.h> | 33 | #include <mach/mmc.h> |
35 | 34 | ||
36 | #include "devices-imx27.h" | 35 | #include "devices-imx27.h" |
@@ -228,7 +227,7 @@ static struct imx_fb_videomode mx27ads_modes[] = { | |||
228 | }, | 227 | }, |
229 | }; | 228 | }; |
230 | 229 | ||
231 | static struct imx_fb_platform_data mx27ads_fb_data = { | 230 | static const struct imx_fb_platform_data mx27ads_fb_data __initconst = { |
232 | .mode = mx27ads_modes, | 231 | .mode = mx27ads_modes, |
233 | .num_modes = ARRAY_SIZE(mx27ads_modes), | 232 | .num_modes = ARRAY_SIZE(mx27ads_modes), |
234 | 233 | ||
@@ -307,7 +306,7 @@ static void __init mx27ads_board_init(void) | |||
307 | i2c_register_board_info(1, mx27ads_i2c_devices, | 306 | i2c_register_board_info(1, mx27ads_i2c_devices, |
308 | ARRAY_SIZE(mx27ads_i2c_devices)); | 307 | ARRAY_SIZE(mx27ads_i2c_devices)); |
309 | imx27_add_imx_i2c(1, &mx27ads_i2c1_data); | 308 | imx27_add_imx_i2c(1, &mx27ads_i2c1_data); |
310 | mxc_register_device(&mxc_fb_device, &mx27ads_fb_data); | 309 | imx27_add_imx_fb(&mx27ads_fb_data); |
311 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); | 310 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); |
312 | mxc_register_device(&mxc_sdhc_device1, &sdhc2_pdata); | 311 | mxc_register_device(&mxc_sdhc_device1, &sdhc2_pdata); |
313 | 312 | ||