[U-Boot] [PATCH 5/8] ColdFire: Fix compiling error

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Fri Aug 22 01:55:26 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

Caused by typo and non-related function

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
 board/freescale/m5329evb/nand.c |    4 ++--
 board/freescale/m5373evb/nand.c |    4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/board/freescale/m5329evb/nand.c b/board/freescale/m5329evb/nand.c
index f84912e..f46b936 100644
--- a/board/freescale/m5329evb/nand.c
+++ b/board/freescale/m5329evb/nand.c
@@ -40,7 +40,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define SET_ALE		0x08
 #define CLR_ALE		~SET_ALE
 
-static void nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
+static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl)
 {
 	struct nand_chip *this = mtdinfo->priv;
 /*	volatile fbcs_t *fbcs = (fbcs_t *) MMAP_FBCS; TODO: handle wp */
@@ -96,7 +96,7 @@ int board_nand_init(struct nand_chip *nand)
 	nand->ecc.mode = NAND_ECC_SOFT;
 	nand->cmd_ctrl = nand_hwcontrol;
 	nand->read_byte = nand_read_byte;
-	nand->write_byte = nand_write_byte;
+	nand->write_buf = nand_write_byte;
 	nand->dev_ready = nand_dev_ready;
 
 	return 0;
diff --git a/board/freescale/m5373evb/nand.c b/board/freescale/m5373evb/nand.c
index 404a9c3..bce8679 100644
--- a/board/freescale/m5373evb/nand.c
+++ b/board/freescale/m5373evb/nand.c
@@ -46,16 +46,14 @@ static void nand_hwcontrol(struct mtd_info *mtdinfo, int cmd, unsigned int ctrl)
 
 	if (ctrl & NAND_CTRL_CHANGE) {
 		ulong IO_ADDR_W = (ulong) this->IO_ADDR_W;
-		IO_ADDR_W &= ~(SET_ALE | SE_CLE);
+		IO_ADDR_W &= ~(SET_ALE | SET_CLE);
 
 		if (ctrl & NAND_CLE)
 			IO_ADDR_W |= SET_CLE;
 		if (ctrl & NAND_ALE)
 			IO_ADDR_W |= SET_ALE;
 
-		at91_set_gpio_value(AT91_PIN_PD15, !(ctrl & NAND_NCE));
 		this->IO_ADDR_W = (void *)IO_ADDR_W;
-
 	}
 
 	if (cmd != NAND_CMD_NONE)
-- 
1.5.6.4



More information about the U-Boot mailing list