diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-03-06 11:23:33 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-04-30 01:40:27 -0400 |
commit | ddeef94e3a27aedb0364b869ad9e0fd8ed098c6c (patch) | |
tree | 0c0f9af0770243323ccbf412924860bceb653af7 | |
parent | 6b961bad80c6d41f177df9256ff1d2794d3849de (diff) |
ARM: i.MX: mx21ads: Cleanup board
- Remove unused <asm/mach/time.h> inclusion.
- Use predefined constant for CS8900A base address.
- Use DEFINE_RES_MEM() macro for NOR flash resource.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/mach-imx/mach-mx21ads.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c index 0b8e63fdbca0..30c30fdae53f 100644 --- a/arch/arm/mach-imx/mach-mx21ads.c +++ b/arch/arm/mach-imx/mach-mx21ads.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/regulator/machine.h> | 23 | #include <linux/regulator/machine.h> |
24 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
25 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
26 | #include <asm/mach/time.h> | ||
27 | 26 | ||
28 | #include "common.h" | 27 | #include "common.h" |
29 | #include "devices-imx21.h" | 28 | #include "devices-imx21.h" |
@@ -139,11 +138,8 @@ static struct physmap_flash_data mx21ads_flash_data = { | |||
139 | .width = 4, | 138 | .width = 4, |
140 | }; | 139 | }; |
141 | 140 | ||
142 | static struct resource mx21ads_flash_resource = { | 141 | static struct resource mx21ads_flash_resource = |
143 | .start = MX21_CS0_BASE_ADDR, | 142 | DEFINE_RES_MEM(MX21_CS0_BASE_ADDR, SZ_32M); |
144 | .end = MX21_CS0_BASE_ADDR + 0x02000000 - 1, | ||
145 | .flags = IORESOURCE_MEM, | ||
146 | }; | ||
147 | 143 | ||
148 | static struct platform_device mx21ads_nor_mtd_device = { | 144 | static struct platform_device mx21ads_nor_mtd_device = { |
149 | .name = "physmap-flash", | 145 | .name = "physmap-flash", |
@@ -156,7 +152,7 @@ static struct platform_device mx21ads_nor_mtd_device = { | |||
156 | }; | 152 | }; |
157 | 153 | ||
158 | static struct resource mx21ads_cs8900_resources[] __initdata = { | 154 | static struct resource mx21ads_cs8900_resources[] __initdata = { |
159 | DEFINE_RES_MEM(MX21_CS1_BASE_ADDR, SZ_1K), | 155 | DEFINE_RES_MEM(MX21ADS_CS8900A_REG, SZ_1K), |
160 | /* irq number is run-time assigned */ | 156 | /* irq number is run-time assigned */ |
161 | DEFINE_RES_IRQ(-1), | 157 | DEFINE_RES_IRQ(-1), |
162 | }; | 158 | }; |