[PATCH 1/2] MTD/NAND/DOC: add forgotten change due to API change
Juergen Beisert
jbe at pengutronix.de
Tue Jan 3 03:55:33 EST 2012
Commit 88ce7ef769de0306dd3c3eac98d437a92bed2ce9 introduces an additional
parameter to the function add_mtd_device(). It seems one of the callers was
left.
Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
drivers/mtd/nand/diskonchip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c
index 8323575..6da68dc 100644
--- a/drivers/mtd/nand/diskonchip.c
+++ b/drivers/mtd/nand/diskonchip.c
@@ -1418,7 +1418,7 @@ static int __init inftl_scan_bbt(struct mtd_info *mtd)
do without it for non-INFTL use, since all it gives us is
autopartitioning, but I want to give it more thought. */
if (!numparts) return -EIO;
- add_mtd_device(mtd);
+ add_mtd_device(mtd, "nand");
#ifdef CONFIG_MTD_PARTITIONS
if (!no_autopart)
add_mtd_partitions(mtd, parts, numparts);
--
1.7.7.3
More information about the barebox
mailing list