]> git.hungrycats.org Git - linux/commitdiff
[PATCH] alpha: struct resource fix
authorAndrew Morton <akpm@osdl.org>
Mon, 21 Feb 2005 23:28:56 +0000 (15:28 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 21 Feb 2005 23:28:56 +0000 (15:28 -0800)
Used named initialisers in this declaration before Greg's tree's struct
resource layout changes come in and break it.

(Probably "dma page reg" shouldn't have spaces in the name - be friendly to
/proc/ioports parsers?)

Cc: Richard Henderson <rth@twiddle.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/alpha/kernel/setup.c

index 71d2205aa04d7954d7a3e718c3b746db50056be8..a4724d9957c75e9f4a0af3f6f15ca3e2d5e9aa0e 100644 (file)
@@ -213,14 +213,14 @@ static void __init
 reserve_std_resources(void)
 {
        static struct resource standard_io_resources[] = {
-               { "rtc", -1, -1 },
-               { "dma1", 0x00, 0x1f },
-               { "pic1", 0x20, 0x3f },
-               { "timer", 0x40, 0x5f },
-               { "keyboard", 0x60, 0x6f },
-               { "dma page reg", 0x80, 0x8f },
-               { "pic2", 0xa0, 0xbf },
-               { "dma2", 0xc0, 0xdf },
+               { .name = "rtc", .start = -1, .end = -1 },
+               { .name = "dma1", .start = 0x00, .end = 0x1f },
+               { .name = "pic1", .start = 0x20, .end = 0x3f },
+               { .name = "timer", .start = 0x40, .end = 0x5f },
+               { .name = "keyboard", .start = 0x60, .end = 0x6f },
+               { .name = "dma page reg", .start = 0x80, .end = 0x8f },
+               { .name = "pic2", .start = 0xa0, .end = 0xbf },
+               { .name = "dma2", .start = 0xc0, .end = 0xdf },
        };
 
        struct resource *io = &ioport_resource;