aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rpc
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-03-01 15:32:52 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-03-24 05:37:37 -0400
commit2b7da084d484fe0dd831464993e2abb496402eb8 (patch)
tree1d8efcf93f68c454ada8e9f4508236bf463cf7e2 /arch/arm/mach-rpc
parent530c2eaa6ab69fca94911f2aa74fe3e11b1cd19b (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.c36
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
100static struct resource acornfb_resources[] = { 100static 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
112static struct platform_device acornfb_device = { 106static struct platform_device acornfb_device = {
@@ -120,11 +114,7 @@ static struct platform_device acornfb_device = {
120}; 114};
121 115
122static struct resource iomd_resources[] = { 116static 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
130static struct platform_device iomd_device = { 120static struct platform_device iomd_device = {
@@ -174,21 +164,9 @@ static struct pata_platform_info pata_platform_data = {
174}; 164};
175 165
176static struct resource pata_resources[] = { 166static 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
194static struct platform_device pata_device = { 172static struct platform_device pata_device = {