Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fd18ae4 authored by Brian Norris's avatar Brian Norris
Browse files

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: default avatarBrian Norris <computersforpeace@gmail.com>
parent 252026ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)