|
@@ -893,7 +893,6 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
|
|
|
|
|
|
/* Avoid extra scan if using BBT, setup BBT support */
|
|
/* Avoid extra scan if using BBT, setup BBT support */
|
|
if (host->ncfg->use_bbt) {
|
|
if (host->ncfg->use_bbt) {
|
|
- chip->options |= NAND_SKIP_BBTSCAN;
|
|
|
|
chip->bbt_options |= NAND_BBT_USE_FLASH;
|
|
chip->bbt_options |= NAND_BBT_USE_FLASH;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -915,13 +914,6 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
|
|
goto err_exit3;
|
|
goto err_exit3;
|
|
}
|
|
}
|
|
|
|
|
|
- /* Standard layout in FLASH for bad block tables */
|
|
|
|
- if (host->ncfg->use_bbt) {
|
|
|
|
- if (nand_default_bbt(mtd) < 0)
|
|
|
|
- dev_err(&pdev->dev,
|
|
|
|
- "Error initializing default bad block tables\n");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
mtd->name = "nxp_lpc3220_slc";
|
|
mtd->name = "nxp_lpc3220_slc";
|
|
ppdata.of_node = pdev->dev.of_node;
|
|
ppdata.of_node = pdev->dev.of_node;
|
|
res = mtd_device_parse_register(mtd, NULL, &ppdata, host->ncfg->parts,
|
|
res = mtd_device_parse_register(mtd, NULL, &ppdata, host->ncfg->parts,
|