Cleanup of NAND support of delta board using the Monahans Data Flash
Controller.
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 @@
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 @@
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