diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 01:35:31 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:33 -0400 |
commit | 0e7a29a8d97c4ea86b9975e65f554c0398a8fdbf (patch) | |
tree | 3f29051d620eb0dd446e22713382c01e8fab3ed5 /arch/arm/mach-imx/mach-pca100.c | |
parent | b0c4845c47bce6fefe5e08b1e0cbd100d62ec36b (diff) |
ARM: imx: Change the way nand devices are registered (imx27)
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-pca100.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index 984c4caeebdc..6efbc6e13be9 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <mach/mxc_ehci.h> | 50 | #include <mach/mxc_ehci.h> |
51 | #include <mach/ulpi.h> | 51 | #include <mach/ulpi.h> |
52 | 52 | ||
53 | #include "devices-imx27.h" | ||
53 | #include "devices.h" | 54 | #include "devices.h" |
54 | 55 | ||
55 | #define OTG_PHY_CS_GPIO (GPIO_PORTB + 23) | 56 | #define OTG_PHY_CS_GPIO (GPIO_PORTB + 23) |
@@ -137,7 +138,8 @@ static struct imxuart_platform_data uart_pdata = { | |||
137 | .flags = IMXUART_HAVE_RTSCTS, | 138 | .flags = IMXUART_HAVE_RTSCTS, |
138 | }; | 139 | }; |
139 | 140 | ||
140 | static struct mxc_nand_platform_data pca100_nand_board_info = { | 141 | static const struct mxc_nand_platform_data |
142 | pca100_nand_board_info __initconst = { | ||
141 | .width = 1, | 143 | .width = 1, |
142 | .hw_ecc = 1, | 144 | .hw_ecc = 1, |
143 | }; | 145 | }; |
@@ -325,7 +327,7 @@ static void __init pca100_init(void) | |||
325 | mxc_gpio_mode(GPIO_PORTC | 29 | GPIO_GPIO | GPIO_IN); | 327 | mxc_gpio_mode(GPIO_PORTC | 29 | GPIO_GPIO | GPIO_IN); |
326 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); | 328 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); |
327 | 329 | ||
328 | mxc_register_device(&imx27_nand_device, &pca100_nand_board_info); | 330 | imx27_add_mxc_nand(&pca100_nand_board_info); |
329 | 331 | ||
330 | /* only the i2c master 1 is used on this CPU card */ | 332 | /* only the i2c master 1 is used on this CPU card */ |
331 | i2c_register_board_info(1, pca100_i2c_devices, | 333 | i2c_register_board_info(1, pca100_i2c_devices, |