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-pca100.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-pca100.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index 11da9c226e90..30490c37190e 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <mach/mmc.h> | 43 | #include <mach/mmc.h> |
44 | #include <mach/mxc_ehci.h> | 44 | #include <mach/mxc_ehci.h> |
45 | #include <mach/ulpi.h> | 45 | #include <mach/ulpi.h> |
46 | #include <mach/imxfb.h> | ||
47 | 46 | ||
48 | #include "devices-imx27.h" | 47 | #include "devices-imx27.h" |
49 | #include "devices.h" | 48 | #include "devices.h" |
@@ -350,7 +349,7 @@ static struct imx_fb_videomode pca100_fb_modes[] = { | |||
350 | }, | 349 | }, |
351 | }; | 350 | }; |
352 | 351 | ||
353 | static struct imx_fb_platform_data pca100_fb_data = { | 352 | static const struct imx_fb_platform_data pca100_fb_data __initconst = { |
354 | .mode = pca100_fb_modes, | 353 | .mode = pca100_fb_modes, |
355 | .num_modes = ARRAY_SIZE(pca100_fb_modes), | 354 | .num_modes = ARRAY_SIZE(pca100_fb_modes), |
356 | 355 | ||
@@ -425,7 +424,7 @@ static void __init pca100_init(void) | |||
425 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); | 424 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); |
426 | } | 425 | } |
427 | 426 | ||
428 | mxc_register_device(&mxc_fb_device, &pca100_fb_data); | 427 | imx27_add_imx_fb(&pca100_fb_data); |
429 | 428 | ||
430 | imx27_add_fec(NULL); | 429 | imx27_add_fec(NULL); |
431 | imx27_add_imx2_wdt(NULL); | 430 | imx27_add_imx2_wdt(NULL); |