Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c55845e authored by Fengguang Wu's avatar Fengguang Wu Committed by Linus Torvalds
Browse files

avr32: fix build error in ATSTK1002 code



Fix the error

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

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

Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e47c6a34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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