]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] V850: C99 initializers for hw_interrupt_type structures
authorThomas Gleixner <tglx@linutronix.de>
Sat, 10 Sep 2005 07:26:43 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 10 Sep 2005 17:06:27 +0000 (10:06 -0700)
Convert the initializers of hw_interrupt_type structures to C99 initializers.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/v850/kernel/irq.c
arch/v850/kernel/setup.c
arch/v850/kernel/sim.c

index 336cbf21dc8ffa8ba8791766c3d55bb9b0c84aeb..9e85969ba9767d714486334c0b31f743470b5cb2 100644 (file)
@@ -67,13 +67,13 @@ static void ack_none(unsigned int irq)
 #define end_none       enable_none
 
 struct hw_interrupt_type no_irq_type = {
-       "none",
-       startup_none,
-       shutdown_none,
-       enable_none,
-       disable_none,
-       ack_none,
-       end_none
+       .typename = "none",
+       .startup = startup_none,
+       .shutdown = shutdown_none,
+       .enable = enable_none,
+       .disable = disable_none,
+       .ack = ack_none,
+       .end = end_none
 };
 
 volatile unsigned long irq_err_count, spurious_count;
index abd48409dcca51f5d4816aaf54e4fa9e149e7fe9..62bdb8d29fc05191750c7f1033a802e24f445d4d 100644 (file)
@@ -138,13 +138,13 @@ static void nmi_end (unsigned irq)
 }
 
 static struct hw_interrupt_type nmi_irq_type = {
-       "NMI",
-       irq_zero,               /* startup */
-       irq_nop,                /* shutdown */
-       irq_nop,                /* enable */
-       irq_nop,                /* disable */
-       irq_nop,                /* ack */
-       nmi_end,                /* end */
+       .typename = "NMI",
+       .startup = irq_zero,            /* startup */
+       .shutdown = irq_nop,            /* shutdown */
+       .enable = irq_nop,              /* enable */
+       .disable = irq_nop,             /* disable */
+       .ack = irq_nop,         /* ack */
+       .end = nmi_end,         /* end */
 };
 
 void __init init_IRQ (void)
index e2cc5580fa2a1eb9191962261857388698dbbf06..17049aaa8f11832cf4a431e9a9e4a09282dd2208 100644 (file)
@@ -73,13 +73,13 @@ static void irq_nop (unsigned irq) { }
 static unsigned irq_zero (unsigned irq) { return 0; }
 
 static struct hw_interrupt_type sim_irq_type = {
-       "IRQ",
-       irq_zero,               /* startup */
-       irq_nop,                /* shutdown */
-       irq_nop,                /* enable */
-       irq_nop,                /* disable */
-       irq_nop,                /* ack */
-       irq_nop,                /* end */
+       .typename = "IRQ",
+       .startup = irq_zero,            /* startup */
+       .shutdown = irq_nop,            /* shutdown */
+       .enable = irq_nop,              /* enable */
+       .disable = irq_nop,             /* disable */
+       .ack = irq_nop,         /* ack */
+       .end = irq_nop,         /* end */
 };
 
 void __init mach_init_irqs (void)