From: Brian Norris Date: Sat, 24 Aug 2013 07:21:30 +0000 (-0700) Subject: mtd: nandsim: don't call nand_default_bbt() directly X-Git-Tag: MMI-PSA29.97-13-9~13292^2~93 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4fd18ae46d207987737d94f8d67483f8d8813b15;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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) 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)