diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-09-21 16:30:02 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-21 17:58:36 -0400 |
commit | e505240b6a6fd47b84cfeb1272ffeacd3e0874b3 (patch) | |
tree | 4a1b9b3715bcf2f52c4ba86e1212c9edd09badfe /arch/arm/mach-at91/board-sam9-l9260.c | |
parent | a745a622434d9c3ff6505125b37fd6828ecadb87 (diff) |
[ARM] 5257/2: [AT91] Use SZ_ definitions and MTDPART_OFS_NXTBLK instead of hex-values
In the various AT91 board files, replace hard-coded size values (eg,
0x800000) with the SZ_ size definitions (eg, SZ_8M) from sizes.h
Also replace MTD partition offsets with MTDPART_OFS_NXTBLK.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9-l9260.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9-l9260.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/board-sam9-l9260.c b/arch/arm/mach-at91/board-sam9-l9260.c index e4910cb26c16..99bb4cc23a09 100644 --- a/arch/arm/mach-at91/board-sam9-l9260.c +++ b/arch/arm/mach-at91/board-sam9-l9260.c | |||
@@ -126,11 +126,11 @@ static struct mtd_partition __initdata ek_nand_partition[] = { | |||
126 | { | 126 | { |
127 | .name = "Bootloader Area", | 127 | .name = "Bootloader Area", |
128 | .offset = 0, | 128 | .offset = 0, |
129 | .size = 10 * 1024 * 1024, | 129 | .size = 10 * SZ_1M, |
130 | }, | 130 | }, |
131 | { | 131 | { |
132 | .name = "User Area", | 132 | .name = "User Area", |
133 | .offset = 10 * 1024 * 1024, | 133 | .offset = MTDPART_OFS_NXTBLK, |
134 | .size = MTDPART_SIZ_FULL, | 134 | .size = MTDPART_SIZ_FULL, |
135 | }, | 135 | }, |
136 | }; | 136 | }; |