aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100/neponset.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-12 05:25:29 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:34:12 -0500
commita181099e2f74dffe45487704cf0e97fd007b2628 (patch)
tree38c878a8ae203240971fb1b7b89c696fbf4c435a /arch/arm/mach-sa1100/neponset.c
parent80ea2065e186d8d69b617770ae7fe51dfea6ba90 (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/neponset.c')
-rw-r--r--arch/arm/mach-sa1100/neponset.c39
1 files changed, 7 insertions, 32 deletions
diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c
index b4fa53a1427e..abbe859b265d 100644
--- a/arch/arm/mach-sa1100/neponset.c
+++ b/arch/arm/mach-sa1100/neponset.c
@@ -213,11 +213,7 @@ static struct platform_driver neponset_device_driver = {
213}; 213};
214 214
215static struct resource neponset_resources[] = { 215static struct resource neponset_resources[] = {
216 [0] = { 216 [0] = DEFINE_RES_MEM(0x10000000, 0x08000000),
217 .start = 0x10000000,
218 .end = 0x17ffffff,
219 .flags = IORESOURCE_MEM,
220 },
221}; 217};
222 218
223static struct platform_device neponset_device = { 219static struct platform_device neponset_device = {
@@ -228,16 +224,8 @@ static struct platform_device neponset_device = {
228}; 224};
229 225
230static struct resource sa1111_resources[] = { 226static struct resource sa1111_resources[] = {
231 [0] = { 227 [0] = DEFINE_RES_MEM(0x40000000, SZ_8K),
232 .start = 0x40000000, 228 [1] = DEFINE_RES_IRQ(IRQ_NEPONSET_SA1111),
233 .end = 0x40001fff,
234 .flags = IORESOURCE_MEM,
235 },
236 [1] = {
237 .start = IRQ_NEPONSET_SA1111,
238 .end = IRQ_NEPONSET_SA1111,
239 .flags = IORESOURCE_IRQ,
240 },
241}; 229};
242 230
243static struct sa1111_platform_data sa1111_info = { 231static struct sa1111_platform_data sa1111_info = {
@@ -259,23 +247,10 @@ static struct platform_device sa1111_device = {
259}; 247};
260 248
261static struct resource smc91x_resources[] = { 249static struct resource smc91x_resources[] = {
262 [0] = { 250 [0] = DEFINE_RES_MEM_NAMED(SA1100_CS3_PHYS, 0x02000000, "smc91x-regs"),
263 .name = "smc91x-regs", 251 [1] = DEFINE_RES_IRQ(IRQ_NEPONSET_SMC9196),
264 .start = SA1100_CS3_PHYS, 252 [2] = DEFINE_RES_MEM_NAMED(SA1100_CS3_PHYS + 0x02000000,
265 .end = SA1100_CS3_PHYS + 0x01ffffff, 253 0x02000000, "smc91x-attrib"),
266 .flags = IORESOURCE_MEM,
267 },
268 [1] = {
269 .start = IRQ_NEPONSET_SMC9196,
270 .end = IRQ_NEPONSET_SMC9196,
271 .flags = IORESOURCE_IRQ,
272 },
273 [2] = {
274 .name = "smc91x-attrib",
275 .start = SA1100_CS3_PHYS + 0x02000000,
276 .end = SA1100_CS3_PHYS + 0x03ffffff,
277 .flags = IORESOURCE_MEM,
278 },
279}; 254};
280 255
281static struct platform_device smc91x_device = { 256static struct platform_device smc91x_device = {