From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Thu, 22 May 2008 23:27:42 +0900 Subject: [U-Boot-Users] [PATCH] NAND: Provide a sane default for NAND_MAX_CHIPS. In-Reply-To: <20080519143458.GA24015@ld0162-tx32.am.freescale.net> References: <20080519143458.GA24015@ld0162-tx32.am.freescale.net> Message-ID: <483582DE.70509@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Scott Wood wrote: > This allows the header to be included regardless of whether a board's > config file provides NAND-related defininitions. > > Signed-off-by: Scott Wood > --- > include/linux/mtd/nand.h | 4 ++++ > 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 Works for me, though I just checked it builds fine. Acked-by: Shinya Kuribayashi