aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2013-08-24 03:21:30 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-10-27 19:26:59 -0400
commit4fd18ae46d207987737d94f8d67483f8d8813b15 (patch)
tree6908862d31db6d8c1c0bc9a3d9eec81734419dbf
parent252026ab9382b5204b7ccd152863a49ae7408656 (diff)
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@gmail.com>
-rw-r--r--drivers/mtd/nand/nandsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index bdc1d15369f8..fdcc5bd3c06b 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -2372,7 +2372,7 @@ static int __init ns_init_module(void)
2372 if ((retval = init_nandsim(nsmtd)) != 0) 2372 if ((retval = init_nandsim(nsmtd)) != 0)
2373 goto err_exit; 2373 goto err_exit;
2374 2374
2375 if ((retval = nand_default_bbt(nsmtd)) != 0) 2375 if ((retval = chip->scan_bbt(nsmtd)) != 0)
2376 goto err_exit; 2376 goto err_exit;
2377 2377
2378 if ((retval = parse_badblocks(nand, nsmtd)) != 0) 2378 if ((retval = parse_badblocks(nand, nsmtd)) != 0)