aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxc_nand.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index ef3e1998b591..06c531485df9 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -857,17 +857,6 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command,
857 } 857 }
858} 858}
859 859
860/* Define some generic bad / good block scan pattern which are used
861 * while scanning a device for factory marked good / bad blocks. */
862static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
863
864static struct nand_bbt_descr smallpage_memorybased = {
865 .options = NAND_BBT_SCAN2NDPAGE,
866 .offs = 5,
867 .len = 1,
868 .pattern = scan_ff_pattern
869};
870
871static int __init mxcnd_probe(struct platform_device *pdev) 860static int __init mxcnd_probe(struct platform_device *pdev)
872{ 861{
873 struct nand_chip *this; 862 struct nand_chip *this;
@@ -984,10 +973,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
984 goto escan; 973 goto escan;
985 } 974 }
986 975
987 if (mtd->writesize == 2048) { 976 host->pagesize_2k = (mtd->writesize == 2048) ? 1 : 0;
988 host->pagesize_2k = 1;
989 this->badblock_pattern = &smallpage_memorybased;
990 }
991 977
992 if (this->ecc.mode == NAND_ECC_HW) { 978 if (this->ecc.mode == NAND_ECC_HW) {
993 switch (mtd->oobsize) { 979 switch (mtd->oobsize) {