diff options
Diffstat (limited to 'arch/arm/mach-at91/board-cam60.c')
-rw-r--r-- | arch/arm/mach-at91/board-cam60.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/board-cam60.c b/arch/arm/mach-at91/board-cam60.c index 747b2eaa9737..2037d2c40eb4 100644 --- a/arch/arm/mach-at91/board-cam60.c +++ b/arch/arm/mach-at91/board-cam60.c | |||
@@ -115,7 +115,7 @@ static struct spi_board_info cam60_spi_devices[] __initdata = { | |||
115 | /* | 115 | /* |
116 | * MACB Ethernet device | 116 | * MACB Ethernet device |
117 | */ | 117 | */ |
118 | static struct __initdata at91_eth_data cam60_macb_data = { | 118 | static struct __initdata macb_platform_data cam60_macb_data = { |
119 | .phy_irq_pin = AT91_PIN_PB5, | 119 | .phy_irq_pin = AT91_PIN_PB5, |
120 | .is_rmii = 0, | 120 | .is_rmii = 0, |
121 | }; | 121 | }; |
@@ -132,19 +132,14 @@ static struct mtd_partition __initdata cam60_nand_partition[] = { | |||
132 | }, | 132 | }, |
133 | }; | 133 | }; |
134 | 134 | ||
135 | static struct mtd_partition * __init nand_partitions(int size, int *num_partitions) | ||
136 | { | ||
137 | *num_partitions = ARRAY_SIZE(cam60_nand_partition); | ||
138 | return cam60_nand_partition; | ||
139 | } | ||
140 | |||
141 | static struct atmel_nand_data __initdata cam60_nand_data = { | 135 | static struct atmel_nand_data __initdata cam60_nand_data = { |
142 | .ale = 21, | 136 | .ale = 21, |
143 | .cle = 22, | 137 | .cle = 22, |
144 | // .det_pin = ... not there | 138 | // .det_pin = ... not there |
145 | .rdy_pin = AT91_PIN_PA9, | 139 | .rdy_pin = AT91_PIN_PA9, |
146 | .enable_pin = AT91_PIN_PA7, | 140 | .enable_pin = AT91_PIN_PA7, |
147 | .partition_info = nand_partitions, | 141 | .parts = cam60_nand_partition, |
142 | .num_parts = ARRAY_SIZE(cam60_nand_partition), | ||
148 | }; | 143 | }; |
149 | 144 | ||
150 | static struct sam9_smc_config __initdata cam60_nand_smc_config = { | 145 | static struct sam9_smc_config __initdata cam60_nand_smc_config = { |