Explorar o código

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>
Scott Wood %!s(int64=17) %!d(string=hai) anos
pai
achega
135f0a7488
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      include/linux/mtd/nand.h

+ 4 - 0
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