mtd: nandsim: don't call nand_default_bbt() directly

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Nov 13 13:59:02 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4fd18ae46d207987737d94f8d67483f8d8813b15
Commit:     4fd18ae46d207987737d94f8d67483f8d8813b15
Parent:     252026ab9382b5204b7ccd152863a49ae7408656
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Aug 24 00:21:30 2013 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Sun Oct 27 16:26:59 2013 -0700

    mtd: nandsim: don't call nand_default_bbt() directly
    
    We want the default nand_chip.scan_bbt() function, so just use the
    proper indirection.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/nandsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index bdc1d15..fdcc5bd 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -2372,7 +2372,7 @@ static int __init ns_init_module(void)
 	if ((retval = init_nandsim(nsmtd)) != 0)
 		goto err_exit;
 
-	if ((retval = nand_default_bbt(nsmtd)) != 0)
+	if ((retval = chip->scan_bbt(nsmtd)) != 0)
 		goto err_exit;
 
 	if ((retval = parse_badblocks(nand, nsmtd)) != 0)



More information about the linux-mtd-cvs mailing list