summaryrefslogtreecommitdiffstats
path: root/include/nand.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/nand.h b/include/nand.h
index 1da35d0ce8..fb3b5a1088 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -1,4 +1,3 @@
-
#ifndef __NAND_H__
#define __NAND_H__
@@ -8,6 +7,7 @@ struct nand_bb;
int dev_add_bb_dev(const char *filename, const char *name);
int dev_remove_bb_dev(const char *name);
struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name);
+void mtd_del_bb(struct mtd_info *mtd);
#else
static inline int dev_add_bb_dev(const char *filename, const char *name) {
return 0;
@@ -21,7 +21,10 @@ static inline struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name)
{
return NULL;
}
+
+static inline void mtd_del_bb(struct mtd_info *mtd)
+{
+}
#endif
#endif /* __NAND_H__ */
-