[PATCH] imx/eukrea_cpuimx27: use new nand device registration

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Nov 17 09:09:56 EST 2009


Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
Hello,

patches 17-24 now look like below and are updated in my tree[1].

Best regards
Uwe

[1] git://git.pengutronix.de/git/ukl/linux-2.6.git imx

 arch/arm/mach-mx2/eukrea_cpuimx27.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-mx2/eukrea_cpuimx27.c b/arch/arm/mach-mx2/eukrea_cpuimx27.c
index 7b18760..efaea46 100644
--- a/arch/arm/mach-mx2/eukrea_cpuimx27.c
+++ b/arch/arm/mach-mx2/eukrea_cpuimx27.c
@@ -38,7 +38,6 @@
 #include <mach/i2c.h>
 #include <mach/iomux.h>
 #include <mach/imx-uart.h>
-#include <mach/mxc_nand.h>
 
 #include "devices.h"
 
@@ -119,7 +118,7 @@ static struct imxuart_platform_data uart_pdata[] = {
 	},
 };
 
-static struct mxc_nand_platform_data eukrea_cpuimx27_nand_board_info = {
+static const struct mxc_nand_platform_data eukrea_cpuimx27_nand_board_info __initconst = {
 	.width = 1,
 	.hw_ecc = 1,
 };
@@ -189,7 +188,7 @@ static void __init eukrea_cpuimx27_init(void)
 
 	mxc_register_device(&mxc_uart_device0, &uart_pdata[0]);
 
-	mxc_register_device(&mxc_nand_device, &eukrea_cpuimx27_nand_board_info);
+	imx27_add_mxc_nand(&eukrea_cpuimx27_nand_board_info);
 
 	i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
 				ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
-- 
1.6.5.2




More information about the linux-arm-kernel mailing list