diff options
Diffstat (limited to 'arch/arm/mach-at91/board-rm9200dk.c')
-rw-r--r-- | arch/arm/mach-at91/board-rm9200dk.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-at91/board-rm9200dk.c b/arch/arm/mach-at91/board-rm9200dk.c index 6f08faadb474..b5f2faf479f6 100644 --- a/arch/arm/mach-at91/board-rm9200dk.c +++ b/arch/arm/mach-at91/board-rm9200dk.c | |||
@@ -138,19 +138,14 @@ static struct mtd_partition __initdata dk_nand_partition[] = { | |||
138 | }, | 138 | }, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) | ||
142 | { | ||
143 | *num_partitions = ARRAY_SIZE(dk_nand_partition); | ||
144 | return dk_nand_partition; | ||
145 | } | ||
146 | |||
147 | static struct atmel_nand_data __initdata dk_nand_data = { | 141 | static struct atmel_nand_data __initdata dk_nand_data = { |
148 | .ale = 22, | 142 | .ale = 22, |
149 | .cle = 21, | 143 | .cle = 21, |
150 | .det_pin = AT91_PIN_PB1, | 144 | .det_pin = AT91_PIN_PB1, |
151 | .rdy_pin = AT91_PIN_PC2, | 145 | .rdy_pin = AT91_PIN_PC2, |
152 | // .enable_pin = ... not there | 146 | // .enable_pin = ... not there |
153 | .partition_info = nand_partitions, | 147 | .parts = dk_nand_partition, |
148 | .num_parts = ARRAY_SIZE(dk_nand_partition), | ||
154 | }; | 149 | }; |
155 | 150 | ||
156 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 | 151 | #define DK_FLASH_BASE AT91_CHIPSELECT_0 |