summaryrefslogtreecommitdiff
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-05-19 09:30:43 -0500
committerScott Wood <scottwood@freescale.com>2008-05-28 11:06:24 -0500
commit135f0a7488af2947adbe4b40b79280bdfe5e9886 (patch)
tree0239a9587c781aa94181344924273d96147eccc1 /include/linux/mtd/nand.h
parent1f1554841a4c8e069d331176f0c3059fb2bb8280 (diff)
downloadu-boot-imx-135f0a7488af2947adbe4b40b79280bdfe5e9886.zip
u-boot-imx-135f0a7488af2947adbe4b40b79280bdfe5e9886.tar.gz
u-boot-imx-135f0a7488af2947adbe4b40b79280bdfe5e9886.tar.bz2
NAND: Provide a sane default for NAND_MAX_CHIPS.
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>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 4cc4a7d..e2a25a6 100644
--- 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