|
@@ -130,19 +130,14 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct mtd_partition * __init nand_partitions(int size, int *num_partitions)
|
|
|
-{
|
|
|
- *num_partitions = ARRAY_SIZE(ek_nand_partition);
|
|
|
- return ek_nand_partition;
|
|
|
-}
|
|
|
-
|
|
|
static struct atmel_nand_data __initdata ek_nand_data = {
|
|
|
.ale = 21,
|
|
|
.cle = 22,
|
|
|
// .det_pin = ... not connected
|
|
|
.rdy_pin = AT91_PIN_PC13,
|
|
|
.enable_pin = AT91_PIN_PC14,
|
|
|
- .partition_info = nand_partitions,
|
|
|
+ .parts = ek_nand_partition,
|
|
|
+ .num_parts = ARRAY_SIZE(ek_nand_partition),
|
|
|
};
|
|
|
|
|
|
static struct sam9_smc_config __initdata ek_nand_smc_config = {
|