summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/mxc_nd2.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mtd/nand/mxc_nd2.c b/drivers/mtd/nand/mxc_nd2.c
index 8d5c2866d8f9..5e45cc40f2fe 100644
--- a/drivers/mtd/nand/mxc_nd2.c
+++ b/drivers/mtd/nand/mxc_nd2.c
@@ -1326,16 +1326,6 @@ int nand_scan_mid(struct mtd_info *mtd)
mtd->oobsize = dev_info->page_total_size_in_bytes & 0x3ff;
mtd->erasesize = dev_info->block_size_in_pages * mtd->writesize;
- /* limit to 2G size due to Kernel
- * larger 4G space support,need fix
- * it later
- */
- if ((u32)mtd->size == 0) {
- mtd->size = (u32)(1 << 31);
- this->numchips = 1;
- this->chipsize = mtd->size;
- }
-
/* Calculate the address shift from the page size */
this->page_shift = ffs(mtd->writesize) - 1;
/* Convert chipsize to number of pages per chip -1. */