* [U-Boot-Users] [PATCH] NAND: Provide a sane default for NAND_MAX_CHIPS.
@ 2008-05-19 14:34 Scott Wood
2008-05-22 14:27 ` Shinya Kuribayashi
0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2008-05-19 14:34 UTC (permalink / raw)
To: u-boot
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 | 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
--
1.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH] NAND: Provide a sane default for NAND_MAX_CHIPS.
2008-05-19 14:34 [U-Boot-Users] [PATCH] NAND: Provide a sane default for NAND_MAX_CHIPS Scott Wood
@ 2008-05-22 14:27 ` Shinya Kuribayashi
0 siblings, 0 replies; 2+ messages in thread
From: Shinya Kuribayashi @ 2008-05-22 14:27 UTC (permalink / raw)
To: u-boot
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 <scottwood@freescale.com>
> ---
> 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 <skuribay@ruby.dti.ne.jp>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-22 14:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 14:34 [U-Boot-Users] [PATCH] NAND: Provide a sane default for NAND_MAX_CHIPS Scott Wood
2008-05-22 14:27 ` Shinya Kuribayashi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox