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-mxt_td60.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-mxt_td60.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mxt_td60.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-mxt_td60.c b/arch/arm/mach-imx/mach-mxt_td60.c index 0e5ddbabcba6..447c68fe4383 100644 --- a/arch/arm/mach-imx/mach-mxt_td60.c +++ b/arch/arm/mach-imx/mach-mxt_td60.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <mach/imxfb.h> | 36 | #include <mach/imxfb.h> |
37 | #include <mach/mmc.h> | 37 | #include <mach/mmc.h> |
38 | 38 | ||
39 | #include "devices-imx27.h" | ||
39 | #include "devices.h" | 40 | #include "devices.h" |
40 | 41 | ||
41 | static unsigned int mxt_td60_pins[] __initdata = { | 42 | static unsigned int mxt_td60_pins[] __initdata = { |
@@ -124,7 +125,8 @@ static unsigned int mxt_td60_pins[] __initdata = { | |||
124 | PB9_PF_SD2_CLK, | 125 | PB9_PF_SD2_CLK, |
125 | }; | 126 | }; |
126 | 127 | ||
127 | static struct mxc_nand_platform_data mxt_td60_nand_board_info = { | 128 | static const struct mxc_nand_platform_data |
129 | mxt_td60_nand_board_info __initconst = { | ||
128 | .width = 1, | 130 | .width = 1, |
129 | .hw_ecc = 1, | 131 | .hw_ecc = 1, |
130 | }; | 132 | }; |
@@ -253,7 +255,7 @@ static void __init mxt_td60_board_init(void) | |||
253 | mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]); | 255 | mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]); |
254 | mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]); | 256 | mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]); |
255 | mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]); | 257 | mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]); |
256 | mxc_register_device(&imx27_nand_device, &mxt_td60_nand_board_info); | 258 | imx27_add_mxc_nand(&mxt_td60_nand_board_info); |
257 | 259 | ||
258 | i2c_register_board_info(0, mxt_td60_i2c_devices, | 260 | i2c_register_board_info(0, mxt_td60_i2c_devices, |
259 | ARRAY_SIZE(mxt_td60_i2c_devices)); | 261 | ARRAY_SIZE(mxt_td60_i2c_devices)); |