linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] avr32: fix build error in ATSTK1002 code
@ 2012-07-22  2:25 Fengguang Wu
  2012-07-25  8:15 ` Fengguang Wu
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-07-22  2:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dmitry Eremin-Solenikov, LKML

arch/avr32/boards/atstk1000/atstk1002.c:100: error: 'num_partitions' undeclared here (not in a function)

which is introduced by commit 1754aab9bb86 ("mtd: ATMEL, AVR32: inline
nand partition table access ").

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 arch/avr32/boards/atstk1000/atstk1002.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c
index dc52633..6c80aba 100644
--- a/arch/avr32/boards/atstk1000/atstk1002.c
+++ b/arch/avr32/boards/atstk1000/atstk1002.c
@@ -97,7 +97,7 @@ static struct atmel_nand_data atstk1006_nand_data __initdata = {
 	.enable_pin	= GPIO_PIN_PB(29),
 	.ecc_mode	= NAND_ECC_SOFT,
 	.parts		= nand_partitions,
-	.num_parts	= ARRAY_SIZE(num_partitions),
+	.num_parts	= ARRAY_SIZE(nand_partitions),
 };
 #endif
 
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] avr32: fix build error in ATSTK1002 code
  2012-07-22  2:25 [PATCH] avr32: fix build error in ATSTK1002 code Fengguang Wu
@ 2012-07-25  8:15 ` Fengguang Wu
  0 siblings, 0 replies; 2+ messages in thread
From: Fengguang Wu @ 2012-07-25  8:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dmitry Eremin-Solenikov, LKML

Andrew, will you accept this fix? It's obviously caused by a typo in
commit 1754aab9bb86.

On Sun, Jul 22, 2012 at 10:25:41AM +0800, Fengguang Wu wrote:
> arch/avr32/boards/atstk1000/atstk1002.c:100: error: 'num_partitions' undeclared here (not in a function)
> 
> which is introduced by commit 1754aab9bb86 ("mtd: ATMEL, AVR32: inline
> nand partition table access ").
> 
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>  arch/avr32/boards/atstk1000/atstk1002.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c
> index dc52633..6c80aba 100644
> --- a/arch/avr32/boards/atstk1000/atstk1002.c
> +++ b/arch/avr32/boards/atstk1000/atstk1002.c
> @@ -97,7 +97,7 @@ static struct atmel_nand_data atstk1006_nand_data __initdata = {
>  	.enable_pin	= GPIO_PIN_PB(29),
>  	.ecc_mode	= NAND_ECC_SOFT,
>  	.parts		= nand_partitions,
> -	.num_parts	= ARRAY_SIZE(num_partitions),
> +	.num_parts	= ARRAY_SIZE(nand_partitions),
>  };
>  #endif
>  
> -- 
> 1.7.10
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-25  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-22  2:25 [PATCH] avr32: fix build error in ATSTK1002 code Fengguang Wu
2012-07-25  8:15 ` Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).