[PATCH 04/11] nand: ground dev_add_bb_dev if nand is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
u-boot-v2 mailing list
u-boot-v2@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/u-boot-v2

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux