summaryrefslogtreecommitdiffstats
path: root/include/nand.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-02-06 08:46:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-12 09:33:43 +0100
commit7649473f40fc037263c1c0a9f54ffa5434080d78 (patch)
treeb71e0376c2dad7f604611eeeafca36bf8cb98894 /include/nand.h
parent99bed342782b4cd0f3f9b943f858971c29936e10 (diff)
downloadbarebox-7649473f40fc037263c1c0a9f54ffa5434080d78.tar.gz
barebox-7649473f40fc037263c1c0a9f54ffa5434080d78.tar.xz
mtd: nand: remove automatically created bb devices
the bb devices which are created in add_mtd_device() must be removed in del_mtd_device(). Also remove deletion of the bb devices in the mtdparts-add environment file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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__ */
-