From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-we0-f171.google.com ([74.125.82.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wfnlb-0003qt-QF for linux-mtd@lists.infradead.org; Thu, 01 May 2014 09:59:00 +0000 Received: by mail-we0-f171.google.com with SMTP id w62so2019059wes.30 for ; Thu, 01 May 2014 02:58:38 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Subject: [PATCH 46/47] mtd: nand: stm_nand_bch: finalise setup by calling and_scan_tail() Date: Thu, 1 May 2014 10:56:53 +0100 Message-Id: <1398938214-17847-47-git-send-email-lee.jones@linaro.org> In-Reply-To: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> References: <1398938214-17847-1-git-send-email-lee.jones@linaro.org> Cc: Lee Jones , computersforpeace@gmail.com, linux-mtd@lists.infradead.org, kernel@stlinux.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Lee Jones --- 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