diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-05-29 09:49:22 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:01:57 -0400 |
commit | 1754aab9bb869c173aa03b57587256827250e488 (patch) | |
tree | fafa68ef3f589204534a5fb89d45dfa19addadfd /arch/arm/mach-at91/board-snapper9260.c | |
parent | 9eeff8243677b8bbfc17e8e606e965bb591a759d (diff) |
mtd: ATMEL, AVR32: inline nand partition table access
Currently atmel_nand driver used by AT91 and AVR32 calls a special callback
which return nand partition table and number of partitions. However in all
boards this callback returns just static data. So drop this callback and
make atmel_nand use partition table provided statically via platform_data.
Nicolas Ferre: I am in favor for a mainline inclusion through linux-mtd tree.
Hans-Christian Egtvedt: I'm fine by sending the changes for AVR32 through linux-mtd
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'arch/arm/mach-at91/board-snapper9260.c')
-rw-r--r-- | arch/arm/mach-at91/board-snapper9260.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/board-snapper9260.c b/arch/arm/mach-at91/board-snapper9260.c index c73d25e5faea..0df01c6e2d0c 100644 --- a/arch/arm/mach-at91/board-snapper9260.c +++ b/arch/arm/mach-at91/board-snapper9260.c | |||
@@ -97,18 +97,12 @@ static struct mtd_partition __initdata snapper9260_nand_partitions[] = { | |||
97 | }, | 97 | }, |
98 | }; | 98 | }; |
99 | 99 | ||
100 | static struct mtd_partition * __init | ||
101 | snapper9260_nand_partition_info(int size, int *num_partitions) | ||
102 | { | ||
103 | *num_partitions = ARRAY_SIZE(snapper9260_nand_partitions); | ||
104 | return snapper9260_nand_partitions; | ||
105 | } | ||
106 | |||
107 | static struct atmel_nand_data __initdata snapper9260_nand_data = { | 100 | static struct atmel_nand_data __initdata snapper9260_nand_data = { |
108 | .ale = 21, | 101 | .ale = 21, |
109 | .cle = 22, | 102 | .cle = 22, |
110 | .rdy_pin = AT91_PIN_PC13, | 103 | .rdy_pin = AT91_PIN_PC13, |
111 | .partition_info = snapper9260_nand_partition_info, | 104 | .parts = snapper9260_nand_partitions, |
105 | .num_parts = ARRAY_SIZE(snapper9260_nand_partitions), | ||
112 | .bus_width_16 = 0, | 106 | .bus_width_16 = 0, |
113 | }; | 107 | }; |
114 | 108 | ||