projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
252026a
)
mtd: nandsim: don't call nand_default_bbt() directly
author
Brian Norris
<computersforpeace@gmail.com>
Sat, 24 Aug 2013 07:21:30 +0000
(
00:21
-0700)
committer
Brian Norris
<computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:26:59 +0000
(16:26 -0700)
We want the default nand_chip.scan_bbt() function, so just use the
proper indirection.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nandsim.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nandsim.c
b/drivers/mtd/nand/nandsim.c
index bdc1d15369f844bfce700a9794b4f8eb558fa921..fdcc5bd3c06bc9c08bd6159ffe58af173645a6d2 100644
(file)
--- 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)