From: Scott Wood Date: Mon, 19 May 2008 14:30:43 +0000 (-0500) Subject: NAND: Provide a sane default for NAND_MAX_CHIPS. X-Git-Tag: v1.3.4-rc1~114^2~24^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=135f0a7488af2947adbe4b40b79280bdfe5e9886;p=u-boot 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 --- diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 4cc4a7d1bb..e2a25a60d8 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