diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 06:23:11 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:34 -0400 |
commit | a2ceeef59f8fc9303dd23ebe09e9daca70799ff5 (patch) | |
tree | c25571df25c4693880cfb5548a86c2f706766939 /arch/arm/mach-mx3/mach-mx31_3ds.c | |
parent | 0e7a29a8d97c4ea86b9975e65f554c0398a8fdbf (diff) |
ARM: imx: Change the way nand devices are registered (imx31)
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-mx3/mach-mx31_3ds.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31_3ds.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index 33f2554fe31c..c730c090208a 100644 --- a/arch/arm/mach-mx3/mach-mx31_3ds.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c | |||
@@ -35,8 +35,9 @@ | |||
35 | #include <mach/common.h> | 35 | #include <mach/common.h> |
36 | #include <mach/imx-uart.h> | 36 | #include <mach/imx-uart.h> |
37 | #include <mach/iomux-mx3.h> | 37 | #include <mach/iomux-mx3.h> |
38 | #include <mach/mxc_nand.h> | ||
39 | #include <mach/spi.h> | 38 | #include <mach/spi.h> |
39 | |||
40 | #include "devices-imx31.h" | ||
40 | #include "devices.h" | 41 | #include "devices.h" |
41 | 42 | ||
42 | /* Definitions for components on the Debug board */ | 43 | /* Definitions for components on the Debug board */ |
@@ -189,7 +190,8 @@ static struct spi_board_info mx31_3ds_spi_devs[] __initdata = { | |||
189 | /* | 190 | /* |
190 | * NAND Flash | 191 | * NAND Flash |
191 | */ | 192 | */ |
192 | static struct mxc_nand_platform_data imx31_3ds_nand_flash_pdata = { | 193 | static const struct mxc_nand_platform_data |
194 | mx31_3ds_nand_board_info __initconst = { | ||
193 | .width = 1, | 195 | .width = 1, |
194 | .hw_ecc = 1, | 196 | .hw_ecc = 1, |
195 | #ifdef MACH_MX31_3DS_MXC_NAND_USE_BBT | 197 | #ifdef MACH_MX31_3DS_MXC_NAND_USE_BBT |
@@ -415,7 +417,7 @@ static void __init mxc_board_init(void) | |||
415 | "mx31_3ds"); | 417 | "mx31_3ds"); |
416 | 418 | ||
417 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 419 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
418 | mxc_register_device(&mxc_nand_device, &imx31_3ds_nand_flash_pdata); | 420 | imx31_add_mxc_nand(&mx31_3ds_nand_board_info); |
419 | 421 | ||
420 | mxc_register_device(&mxc_spi_device1, &spi1_pdata); | 422 | mxc_register_device(&mxc_spi_device1, &spi1_pdata); |
421 | spi_register_board_info(mx31_3ds_spi_devs, | 423 | spi_register_board_info(mx31_3ds_spi_devs, |