diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-01 15:32:52 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-24 05:37:37 -0400 |
commit | 2b7da084d484fe0dd831464993e2abb496402eb8 (patch) | |
tree | 1d8efcf93f68c454ada8e9f4508236bf463cf7e2 /arch/arm/mach-rpc | |
parent | 530c2eaa6ab69fca94911f2aa74fe3e11b1cd19b (diff) |
ARM: riscpc: use DEFINE_RES_xxx()
Use DEFINE_RES_xxx() to define device resources.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-rpc')
-rw-r--r-- | arch/arm/mach-rpc/riscpc.c | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index b4db10045ae9..731552d68adf 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c | |||
@@ -98,15 +98,9 @@ static void __init rpc_map_io(void) | |||
98 | } | 98 | } |
99 | 99 | ||
100 | static struct resource acornfb_resources[] = { | 100 | static struct resource acornfb_resources[] = { |
101 | { /* VIDC */ | 101 | /* VIDC */ |
102 | .start = 0x03400000, | 102 | DEFINE_RES_MEM(0x03400000, 0x00200000), |
103 | .end = 0x035fffff, | 103 | DEFINE_RES_IRQ(IRQ_VSYNCPULSE), |
104 | .flags = IORESOURCE_MEM, | ||
105 | }, { | ||
106 | .start = IRQ_VSYNCPULSE, | ||
107 | .end = IRQ_VSYNCPULSE, | ||
108 | .flags = IORESOURCE_IRQ, | ||
109 | }, | ||
110 | }; | 104 | }; |
111 | 105 | ||
112 | static struct platform_device acornfb_device = { | 106 | static struct platform_device acornfb_device = { |
@@ -120,11 +114,7 @@ static struct platform_device acornfb_device = { | |||
120 | }; | 114 | }; |
121 | 115 | ||
122 | static struct resource iomd_resources[] = { | 116 | static struct resource iomd_resources[] = { |
123 | { | 117 | DEFINE_RES_MEM(0x03200000, 0x10000), |
124 | .start = 0x03200000, | ||
125 | .end = 0x0320ffff, | ||
126 | .flags = IORESOURCE_MEM, | ||
127 | }, | ||
128 | }; | 118 | }; |
129 | 119 | ||
130 | static struct platform_device iomd_device = { | 120 | static struct platform_device iomd_device = { |
@@ -174,21 +164,9 @@ static struct pata_platform_info pata_platform_data = { | |||
174 | }; | 164 | }; |
175 | 165 | ||
176 | static struct resource pata_resources[] = { | 166 | static struct resource pata_resources[] = { |
177 | [0] = { | 167 | DEFINE_RES_MEM(0x030107c0, 0x20), |
178 | .start = 0x030107c0, | 168 | DEFINE_RES_MEM(0x03010fd8, 0x04), |
179 | .end = 0x030107df, | 169 | DEFINE_RES_IRQ(IRQ_HARDDISK), |
180 | .flags = IORESOURCE_MEM, | ||
181 | }, | ||
182 | [1] = { | ||
183 | .start = 0x03010fd8, | ||
184 | .end = 0x03010fdb, | ||
185 | .flags = IORESOURCE_MEM, | ||
186 | }, | ||
187 | [2] = { | ||
188 | .start = IRQ_HARDDISK, | ||
189 | .end = IRQ_HARDDISK, | ||
190 | .flags = IORESOURCE_IRQ, | ||
191 | }, | ||
192 | }; | 170 | }; |
193 | 171 | ||
194 | static struct platform_device pata_device = { | 172 | static struct platform_device pata_device = { |