[MTD] [OneNAND] proper onenand_bbt_read_oob() prototype
authorAdrian Bunk <bunk@kernel.org>
Mon, 14 Apr 2008 14:20:38 +0000 (17:20 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 14:59:13 +0000 (15:59 +0100)
This patch adds a proper prototype for onenand_bbt_read_oob() in
include/linux/mtd/onenand.h

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/onenand/onenand_bbt.c
include/linux/mtd/onenand.h

index aecdd50a1781354556c9948ed86b4a1f09e52c36..2f53b51c68054cb5a11aa17bf9646c56c7d975e3 100644 (file)
@@ -17,9 +17,6 @@
 #include <linux/mtd/onenand.h>
 #include <linux/mtd/compatmac.h>
 
-extern int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
-                               struct mtd_oob_ops *ops);
-
 /**
  * check_short_pattern - [GENERIC] check if a pattern is in the buffer
  * @param buf          the buffer to search
index fd0a260e070b483b7be93288d088367949366b47..9aa2a9149b583991c75054ffd15b583b8e540f3e 100644 (file)
@@ -187,4 +187,7 @@ struct onenand_manufacturers {
         char *name;
 };
 
+int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
+                        struct mtd_oob_ops *ops);
+
 #endif /* __LINUX_MTD_ONENAND_H */