diff options
author | Uwe Kleine-König | 2010-11-11 15:32:21 +0100 |
---|---|---|
committer | Uwe Kleine-König | 2010-11-17 10:01:41 +0100 |
commit | 194ee8e89cc02d8bea8a0b837271f79ca0c72873 (patch) | |
tree | 212f66a12c7afbf931cab5c52f713306b76d980f /arch/arm/mach-mx25/mach-mx25_3ds.c | |
parent | ARM: mx25: dynamically allocate imxdi_rtc devices (diff) | |
download | kernel-qcow2-linux-194ee8e89cc02d8bea8a0b837271f79ca0c72873.tar.gz kernel-qcow2-linux-194ee8e89cc02d8bea8a0b837271f79ca0c72873.tar.xz kernel-qcow2-linux-194ee8e89cc02d8bea8a0b837271f79ca0c72873.zip |
ARM: mx25: dynamically allocatate imx-fb devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/mach-mx25_3ds.c')
-rw-r--r-- | arch/arm/mach-mx25/mach-mx25_3ds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx25/mach-mx25_3ds.c b/arch/arm/mach-mx25/mach-mx25_3ds.c index 0566d3cb10cd..34492aa3cfa6 100644 --- a/arch/arm/mach-mx25/mach-mx25_3ds.c +++ b/arch/arm/mach-mx25/mach-mx25_3ds.c @@ -39,7 +39,6 @@ #include <asm/mach/map.h> #include <mach/common.h> #include <mach/mx25.h> -#include <mach/imxfb.h> #include <mach/iomux-mx25.h> #include "devices-imx25.h" @@ -154,7 +153,7 @@ static struct imx_fb_videomode mx25pdk_modes[] = { }, }; -static struct imx_fb_platform_data mx25pdk_fb_pdata = { +static const struct imx_fb_platform_data mx25pdk_fb_pdata __initconst = { .mode = mx25pdk_modes, .num_modes = ARRAY_SIZE(mx25pdk_modes), .pwmr = 0x00A903FF, @@ -195,7 +194,7 @@ static void __init mx25pdk_init(void) imx25_add_mxc_ehci_hs(NULL); imx25_add_mxc_nand(&mx25pdk_nand_board_info); imx25_add_imxdi_rtc(NULL); - mxc_register_device(&mx25_fb_device, &mx25pdk_fb_pdata); + imx25_add_imx_fb(&mx25pdk_fb_pdata); mxc_register_device(&mxc_wdt, NULL); mx25pdk_fec_reset(); |