Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176926
b: refs/heads/master
c: 1cc5239
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Oct 20, 2009
1 parent bf85df4 commit ecbef00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f4e137e9af8745ccaddaf5dcb037a1175089e1c
refs/heads/master: 1cc523999e0acd0c21f83bf89b7a44b4ab6f7bd8
16 changes: 1 addition & 15 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,17 +857,6 @@ static void mxc_nand_command(struct mtd_info *mtd, unsigned command,
}
}

/* Define some generic bad / good block scan pattern which are used
* while scanning a device for factory marked good / bad blocks. */
static uint8_t scan_ff_pattern[] = { 0xff, 0xff };

static struct nand_bbt_descr smallpage_memorybased = {
.options = NAND_BBT_SCAN2NDPAGE,
.offs = 5,
.len = 1,
.pattern = scan_ff_pattern
};

static int __init mxcnd_probe(struct platform_device *pdev)
{
struct nand_chip *this;
Expand Down Expand Up @@ -984,10 +973,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
goto escan;
}

if (mtd->writesize == 2048) {
host->pagesize_2k = 1;
this->badblock_pattern = &smallpage_memorybased;
}
host->pagesize_2k = (mtd->writesize == 2048) ? 1 : 0;

if (this->ecc.mode == NAND_ECC_HW) {
switch (mtd->oobsize) {
Expand Down

0 comments on commit ecbef00

Please sign in to comment.