[PATCH 46/47] mtd: nand: stm_nand_bch: finalise setup by calling and_scan_tail()

From: Lee Jones
Date: Thu May 01 2014 - 05:59:19 EST


Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/mtd/nand/stm_nand_bch.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/mtd/nand/stm_nand_bch.c b/drivers/mtd/nand/stm_nand_bch.c
index bec7e23..e7a4bed 100644
--- a/drivers/mtd/nand/stm_nand_bch.c
+++ b/drivers/mtd/nand/stm_nand_bch.c
@@ -2315,6 +2315,10 @@ static int stm_nand_bch_probe(struct platform_device *pdev)
if (err)
return err;

+ err = nand_scan_tail(mtd);
+ if (err)
+ return err;
+
nandi_dump_bad_blocks(nandi);

/* Add partitions */
--
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/