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-csb637.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-csb637.c')
-rw-r--r-- | arch/arm/mach-at91/board-csb637.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/board-csb637.c b/arch/arm/mach-at91/board-csb637.c index 8db8bd8babd9..cfa3f04b2205 100644 --- a/arch/arm/mach-at91/board-csb637.c +++ b/arch/arm/mach-at91/board-csb637.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/mtd/physmap.h> | 26 | #include <linux/mtd/physmap.h> |
27 | 27 | ||
28 | #include <mach/hardware.h> | ||
29 | #include <asm/setup.h> | 28 | #include <asm/setup.h> |
30 | #include <asm/mach-types.h> | 29 | #include <asm/mach-types.h> |
31 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
@@ -34,6 +33,7 @@ | |||
34 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
35 | #include <asm/mach/irq.h> | 34 | #include <asm/mach/irq.h> |
36 | 35 | ||
36 | #include <mach/hardware.h> | ||
37 | #include <mach/board.h> | 37 | #include <mach/board.h> |
38 | #include <mach/gpio.h> | 38 | #include <mach/gpio.h> |
39 | 39 | ||
@@ -72,7 +72,7 @@ static struct at91_udc_data __initdata csb637_udc_data = { | |||
72 | }; | 72 | }; |
73 | 73 | ||
74 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 | 74 | #define CSB_FLASH_BASE AT91_CHIPSELECT_0 |
75 | #define CSB_FLASH_SIZE 0x1000000 | 75 | #define CSB_FLASH_SIZE SZ_16M |
76 | 76 | ||
77 | static struct mtd_partition csb_flash_partitions[] = { | 77 | static struct mtd_partition csb_flash_partitions[] = { |
78 | { | 78 | { |