diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 05:17:45 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:30 -0400 |
commit | 1f8d721cd3dd1a2ee37152ce228f035212074984 (patch) | |
tree | 3a2b5ba694a4ffef0bceaeeacf46454d0511b2f3 /arch/arm/mach-imx/mach-mx21ads.c | |
parent | 66384eedd900f2f6bb00e4f16c2cb770d6b0066b (diff) |
ARM: imx: Change the way nand devices are registered (imx21)
Make use of new mechanism to register a nand device.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx21ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx21ads.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c index 39c645a8adad..fde2a5770bfe 100644 --- a/arch/arm/mach-imx/mach-mx21ads.c +++ b/arch/arm/mach-imx/mach-mx21ads.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <mach/mxc_nand.h> | 30 | #include <mach/mxc_nand.h> |
31 | #include <mach/mmc.h> | 31 | #include <mach/mmc.h> |
32 | 32 | ||
33 | #include "devices-imx21.h" | ||
33 | #include "devices.h" | 34 | #include "devices.h" |
34 | 35 | ||
35 | /* | 36 | /* |
@@ -257,7 +258,8 @@ static struct imxmmc_platform_data mx21ads_sdhc_pdata = { | |||
257 | .exit = mx21ads_sdhc_exit, | 258 | .exit = mx21ads_sdhc_exit, |
258 | }; | 259 | }; |
259 | 260 | ||
260 | static struct mxc_nand_platform_data mx21ads_nand_board_info = { | 261 | static const struct mxc_nand_platform_data |
262 | mx21ads_nand_board_info __initconst = { | ||
261 | .width = 1, | 263 | .width = 1, |
262 | .hw_ecc = 1, | 264 | .hw_ecc = 1, |
263 | }; | 265 | }; |
@@ -298,7 +300,7 @@ static void __init mx21ads_board_init(void) | |||
298 | mxc_register_device(&imx2x_uart_device3, &uart_pdata); | 300 | mxc_register_device(&imx2x_uart_device3, &uart_pdata); |
299 | mxc_register_device(&mxc_fb_device, &mx21ads_fb_data); | 301 | mxc_register_device(&mxc_fb_device, &mx21ads_fb_data); |
300 | mxc_register_device(&mxc_sdhc_device0, &mx21ads_sdhc_pdata); | 302 | mxc_register_device(&mxc_sdhc_device0, &mx21ads_sdhc_pdata); |
301 | mxc_register_device(&imx21_nand_device, &mx21ads_nand_board_info); | 303 | imx21_add_mxc_nand(&mx21ads_nand_board_info); |
302 | 304 | ||
303 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 305 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
304 | } | 306 | } |