Skip to contentSkip to conversation

avr32: fix build error in ATSTK1002 code

PATCH In review Fengguang Wu 1 participant 2 messages Jul 22, 2012 – Jul 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32: fix build error in ATSTK1002 code

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 ").

---
 arch/avr32/boards/atstk1000/atstk1002.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/avr32/boards/atstk1000/atstk1002.c +1 -1
index dc52633..6c80aba 100644
@@ -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
 
Signature · 1 line
1.7.10
#1 lore raw

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

Quoted 26 lines · Fengguang Wu

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 ").

---
 arch/avr32/boards/atstk1000/atstk1002.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/avr32/boards/atstk1000/atstk1002.c +1 -1
index dc52633..6c80aba 100644
@@ -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
 
Signature · 1 line
1.7.10