[PATCH 04/11] nand: ground dev_add_bb_dev if nand is disabled
Marc Kleine-Budde
mkl at pengutronix.de
Mon Nov 23 07:06:16 EST 2009
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
include/nand.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/nand.h b/include/nand.h
index 522a0fc..05358d0 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -4,7 +4,13 @@
struct nand_bb;
+#ifdef CONFIG_NAND
int dev_add_bb_dev(char *filename, const char *name);
+#else
+static inline int dev_add_bb_dev(char *filename, const char *name) {
+ return 0;
+}
+#endif
#endif /* __NAND_H__ */
--
1.6.5.2
More information about the barebox
mailing list