9
0
Fork 0

nand: ground dev_add_bb_dev if nand is disabled

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2009-11-20 10:23:50 +01:00
parent a4b37431be
commit 25144c9f7c
1 changed files with 6 additions and 0 deletions

View File

@ -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__ */