]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc32: resource layout fixes
authorAndrew Morton <akpm@osdl.org>
Mon, 21 Feb 2005 23:29:10 +0000 (15:29 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 21 Feb 2005 23:29:10 +0000 (15:29 -0800)
Use named initialisers.

Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/syslib/i8259.c

index f486c535f34321ae08195d725af75aec220785f1..b9391e65014124f946d83704ef88e54cf58f3a8d 100644 (file)
@@ -140,15 +140,24 @@ struct hw_interrupt_type i8259_pic = {
 };
 
 static struct resource pic1_iores = {
-       "8259 (master)", 0x20, 0x21, IORESOURCE_BUSY
+       .name = "8259 (master)",
+       .start = 0x20,
+       .end = 0x21,
+       .flags = IORESOURCE_BUSY,
 };
 
 static struct resource pic2_iores = {
-       "8259 (slave)", 0xa0, 0xa1, IORESOURCE_BUSY
+       .name = "8259 (slave)",
+       .start = 0xa0,
+       .end = 0xa1,
+       .flags = IORESOURCE_BUSY,
 };
 
 static struct resource pic_edgectrl_iores = {
-       "8259 edge control", 0x4d0, 0x4d1, IORESOURCE_BUSY
+       .name = "8259 edge control",
+       .start = 0x4d0,
+       .end = 0x4d1,
+       .flags = IORESOURCE_BUSY,
 };
 
 static struct irqaction i8259_irqaction = {