summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Klotzbücher <Markus Klotzbümk@pollux.denx.de>2006-03-06 15:04:25 +0100
committerMarkus Klotzbücher <mk@pollux.denx.de>2006-03-06 15:04:25 +0100
commit43638c674a1bc57eef41439e87c281269a08cb16 (patch)
treec42d1e3340add6c4b4099ea59b603ecffbe0430d /drivers
parentf9e029184be5ef550d05262e0f150d31fb09d19b (diff)
downloadu-boot-imx-43638c674a1bc57eef41439e87c281269a08cb16.zip
u-boot-imx-43638c674a1bc57eef41439e87c281269a08cb16.tar.gz
u-boot-imx-43638c674a1bc57eef41439e87c281269a08cb16.tar.bz2
Cleanup of NAND support of delta board using the Monahans Data Flash
Controller.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nand/nand_base.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/nand/nand_base.c b/drivers/nand/nand_base.c
index a5792cf..d6c84fb 100644
--- a/drivers/nand/nand_base.c
+++ b/drivers/nand/nand_base.c
@@ -489,7 +489,6 @@ static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
return nand_write_oob (mtd, ofs , 2, &retlen, buf);
}
-#if READ_STATUS_BUG
/**
* nand_check_wp - [GENERIC] check if the chip is write protected
* @mtd: MTD device structure
@@ -504,12 +503,7 @@ static int nand_check_wp (struct mtd_info *mtd)
this->cmdfunc (mtd, NAND_CMD_STATUS, -1, -1);
return (this->read_byte(mtd) & 0x80) ? 0 : 1;
}
-#else
-static int nand_check_wp (struct mtd_info *mtd)
-{
- return 0;
-}
-#endif
+
/**
* nand_block_checkbad - [GENERIC] Check if a block is marked bad
* @mtd: MTD device structure