summaryrefslogtreecommitdiffstats
path: root/arch/mips/philips/pnx8550/common/setup.c
diff options
context:
space:
mode:
authorRalf Baechle2006-06-05 00:14:05 +0200
committerRalf Baechle2006-06-19 18:39:20 +0200
commit5e46c3aefe60d1398488410a0c39b4cd87738614 (patch)
tree982f9820e63cee8aacc4a6132f124d1cef4fe901 /arch/mips/philips/pnx8550/common/setup.c
parent[MIPS] Remove duplicate declarations from Alchemy code. (diff)
downloadkernel-qcow2-linux-5e46c3aefe60d1398488410a0c39b4cd87738614.tar.gz
kernel-qcow2-linux-5e46c3aefe60d1398488410a0c39b4cd87738614.tar.xz
kernel-qcow2-linux-5e46c3aefe60d1398488410a0c39b4cd87738614.zip
[MIPS] C99-ify struct resource initialization.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/philips/pnx8550/common/setup.c')
-rw-r--r--arch/mips/philips/pnx8550/common/setup.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/arch/mips/philips/pnx8550/common/setup.c b/arch/mips/philips/pnx8550/common/setup.c
index 0d8a77619391..2b199f338080 100644
--- a/arch/mips/philips/pnx8550/common/setup.c
+++ b/arch/mips/philips/pnx8550/common/setup.c
@@ -58,10 +58,27 @@ extern void prom_printf(char *fmt, ...);
extern char *prom_getcmdline(void);
struct resource standard_io_resources[] = {
- {"dma1", 0x00, 0x1f, IORESOURCE_BUSY},
- {"timer", 0x40, 0x5f, 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 = 0x80,
+ .end = 0x8f,
+ .name = "dma page reg",
+ .flags = IORESOURCE_BUSY
+ }, {
+ .start = 0xc0,
+ .end = 0xdf,
+ .name = "dma2",
+ .flags = IORESOURCE_BUSY
+ },
};
#define STANDARD_IO_RESOURCES (sizeof(standard_io_resources)/sizeof(struct resource))