projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f15548
)
NAND: Provide a sane default for NAND_MAX_CHIPS.
author
Scott Wood
<scottwood@freescale.com>
Mon, 19 May 2008 14:30:43 +0000
(09:30 -0500)
committer
Scott Wood
<scottwood@freescale.com>
Wed, 28 May 2008 16:06:24 +0000
(11:06 -0500)
This allows the header to be included regardless of whether a board's
config file provides NAND-related defininitions.
Signed-off-by: Scott Wood <scottwood@freescale.com>
include/linux/mtd/nand.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/nand.h
b/include/linux/mtd/nand.h
index 4cc4a7d1bb444c800d4422bb7ac1cbba76b40a45..e2a25a60d849736478cbd92af60d8c67c708b072 100644
(file)
--- a/
include/linux/mtd/nand.h
+++ b/
include/linux/mtd/nand.h
@@
-385,6
+385,10
@@
struct nand_manufacturers {
extern struct nand_flash_dev nand_flash_ids[];
extern struct nand_manufacturers nand_manuf_ids[];
+#ifndef NAND_MAX_CHIPS
+#define NAND_MAX_CHIPS 8
+#endif
+
/**
* struct nand_bbt_descr - bad block table descriptor
* @options: options for this descriptor