diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-06-04 18:14:05 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-06-19 12:39:20 -0400 |
commit | 5e46c3aefe60d1398488410a0c39b4cd87738614 (patch) | |
tree | 982f9820e63cee8aacc4a6132f124d1cef4fe901 /arch/mips/ddb5xxx/ddb5476 | |
parent | cbb306962ec4b30e03423137e22d605281a8f598 (diff) |
[MIPS] C99-ify struct resource initialization.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ddb5xxx/ddb5476')
-rw-r--r-- | arch/mips/ddb5xxx/ddb5476/setup.c | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/arch/mips/ddb5xxx/ddb5476/setup.c b/arch/mips/ddb5xxx/ddb5476/setup.c index c902adef5942..fc8d8bb4849c 100644 --- a/arch/mips/ddb5xxx/ddb5476/setup.c +++ b/arch/mips/ddb5xxx/ddb5476/setup.c | |||
@@ -109,17 +109,42 @@ static struct { | |||
109 | struct resource dma2; | 109 | struct resource dma2; |
110 | } ddb5476_ioport = { | 110 | } ddb5476_ioport = { |
111 | { | 111 | { |
112 | "dma1", 0x00, 0x1f, IORESOURCE_BUSY}, { | 112 | .start = 0x00, |
113 | "timer", 0x40, 0x5f, IORESOURCE_BUSY}, { | 113 | .end = 0x1f, |
114 | "rtc", 0x70, 0x7f, IORESOURCE_BUSY}, { | 114 | .name = "dma1", |
115 | "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY}, { | 115 | .flags = IORESOURCE_BUSY |
116 | "dma2", 0xc0, 0xdf, IORESOURCE_BUSY} | 116 | }, { |
117 | .start = 0x40, | ||
118 | .end = 0x5f, | ||
119 | .name = "timer", | ||
120 | .flags = IORESOURCE_BUSY | ||
121 | }, { | ||
122 | .start = 0x70, | ||
123 | .end = 0x7f, | ||
124 | .name = "rtc", | ||
125 | .flags = IORESOURCE_BUSY | ||
126 | }, { | ||
127 | .start = 0x80, | ||
128 | .end = 0x8f, | ||
129 | .name = "dma page reg", | ||
130 | .flags = IORESOURCE_BUSY | ||
131 | }, { | ||
132 | .start = 0xc0, | ||
133 | .end = 0xdf, | ||
134 | .name = "dma2", | ||
135 | .flags = IORESOURCE_BUSY | ||
136 | } | ||
117 | }; | 137 | }; |
118 | 138 | ||
119 | static struct { | 139 | static struct { |
120 | struct resource nile4; | 140 | struct resource nile4; |
121 | } ddb5476_iomem = { | 141 | } ddb5476_iomem = { |
122 | { "Nile 4", DDB_BASE, DDB_BASE + DDB_SIZE - 1, IORESOURCE_BUSY} | 142 | { |
143 | .start = DDB_BASE, | ||
144 | .end = DDB_BASE + DDB_SIZE - 1, | ||
145 | .name = "Nile 4", | ||
146 | .flags = IORESOURCE_BUSY | ||
147 | } | ||
123 | }; | 148 | }; |
124 | 149 | ||
125 | 150 | ||