1 --- a/include/linux/mtd/nand.h
2 +++ b/include/linux/mtd/nand.h
6 const char **part_probe_types;
7 + int (*chip_fixup)(struct mtd_info *mtd);
11 --- a/drivers/mtd/nand/plat_nand.c
12 +++ b/drivers/mtd/nand/plat_nand.c
14 platform_set_drvdata(pdev, data);
16 /* Scan to find existance of the device */
17 - if (nand_scan(&data->mtd, 1)) {
18 + if (nand_scan_ident(&data->mtd, 1)) {
23 + if (pdata->chip.chip_fixup) {
24 + res = pdata->chip.chip_fixup(&data->mtd);
29 + if (nand_scan_tail(&data->mtd)) {