Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310244
b: refs/heads/master
c: 4a43faf
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and David Woodhouse committed Jun 1, 2012
1 parent 2593b5c commit c828768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 2e24e32e2759348c9290404abad4f729f791bfad
refs/heads/master: 4a43faf54e9173b6acce37cf7f053fc9515a2cdf
12 changes: 6 additions & 6 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1465,19 +1465,19 @@ static int __init mxcnd_probe(struct platform_device *pdev)
else if (mtd->writesize == 4096)
this->ecc.layout = host->devtype_data->ecclayout_4k;

/* second phase scan */
if (nand_scan_tail(mtd)) {
err = -ENXIO;
goto escan;
}

if (this->ecc.mode == NAND_ECC_HW) {
if (nfc_is_v1())
this->ecc.strength = 1;
else
this->ecc.strength = (host->eccsize == 4) ? 4 : 8;
}

/* second phase scan */
if (nand_scan_tail(mtd)) {
err = -ENXIO;
goto escan;
}

/* Register the partitions */
mtd_device_parse_register(mtd, part_probes,
&(struct mtd_part_parser_data){
Expand Down

0 comments on commit c828768

Please sign in to comment.