summaryrefslogtreecommitdiff
path: root/arch/mips/ddb5xxx
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-06-05 02:14:05 +0400
committerRalf Baechle <ralf@linux-mips.org>2006-06-19 20:39:20 +0400
commit5e46c3aefe60d1398488410a0c39b4cd87738614 (patch)
tree982f9820e63cee8aacc4a6132f124d1cef4fe901 /arch/mips/ddb5xxx
parentcbb306962ec4b30e03423137e22d605281a8f598 (diff)
downloadlinux-5e46c3aefe60d1398488410a0c39b4cd87738614.tar.xz
[MIPS] C99-ify struct resource initialization.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ddb5xxx')
-rw-r--r--arch/mips/ddb5xxx/ddb5476/setup.c37
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 {
struct resource dma2;
} ddb5476_ioport = {
{
- "dma1", 0x00, 0x1f, IORESOURCE_BUSY}, {
- "timer", 0x40, 0x5f, IORESOURCE_BUSY}, {
- "rtc", 0x70, 0x7f, IORESOURCE_BUSY}, {
- "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY}, {
- "dma2", 0xc0, 0xdf, IORESOURCE_BUSY}
+ .start = 0x00,
+ .end = 0x1f,
+ .name = "dma1",
+ .flags = IORESOURCE_BUSY
+ }, {
+ .start = 0x40,
+ .end = 0x5f,
+ .name = "timer",
+ .flags = IORESOURCE_BUSY
+ }, {
+ .start = 0x70,
+ .end = 0x7f,
+ .name = "rtc",
+ .flags = IORESOURCE_BUSY
+ }, {
+ .start = 0x80,
+ .end = 0x8f,
+ .name = "dma page reg",
+ .flags = IORESOURCE_BUSY
+ }, {
+ .start = 0xc0,
+ .end = 0xdf,
+ .name = "dma2",
+ .flags = IORESOURCE_BUSY
+ }
};
static struct {
struct resource nile4;
} ddb5476_iomem = {
- { "Nile 4", DDB_BASE, DDB_BASE + DDB_SIZE - 1, IORESOURCE_BUSY}
+ {
+ .start = DDB_BASE,
+ .end = DDB_BASE + DDB_SIZE - 1,
+ .name = "Nile 4",
+ .flags = IORESOURCE_BUSY
+ }
};