diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-12 05:25:29 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-09 10:34:12 -0500 |
commit | a181099e2f74dffe45487704cf0e97fd007b2628 (patch) | |
tree | 38c878a8ae203240971fb1b7b89c696fbf4c435a /arch/arm/mach-sa1100/shannon.c | |
parent | 80ea2065e186d8d69b617770ae7fe51dfea6ba90 (diff) |
ARM: sa11x0: convert to use DEFINE_RES_xxx macros
Convert StrongARM-11x0 platforms and core SoC code to use the
DEFINE_RES_xxx macros.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/shannon.c')
-rw-r--r-- | arch/arm/mach-sa1100/shannon.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-sa1100/shannon.c b/arch/arm/mach-sa1100/shannon.c index 318b2b766a0b..5fd615649847 100644 --- a/arch/arm/mach-sa1100/shannon.c +++ b/arch/arm/mach-sa1100/shannon.c | |||
@@ -46,11 +46,8 @@ static struct flash_platform_data shannon_flash_data = { | |||
46 | .nr_parts = ARRAY_SIZE(shannon_partitions), | 46 | .nr_parts = ARRAY_SIZE(shannon_partitions), |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct resource shannon_flash_resource = { | 49 | static struct resource shannon_flash_resource = |
50 | .start = SA1100_CS0_PHYS, | 50 | DEFINE_RES_MEM(SA1100_CS0_PHYS, SZ_4M); |
51 | .end = SA1100_CS0_PHYS + SZ_4M - 1, | ||
52 | .flags = IORESOURCE_MEM, | ||
53 | }; | ||
54 | 51 | ||
55 | static struct mcp_plat_data shannon_mcp_data = { | 52 | static struct mcp_plat_data shannon_mcp_data = { |
56 | .mccr0 = MCCR0_ADM, | 53 | .mccr0 = MCCR0_ADM, |