[PATCH 8/10] SH64: C99 initializers for hw_interrupt_type structures

From: tglx
Date: Sat Feb 26 2005 - 19:14:46 EST


Convert the initializers of hw_interrupt_type structures to C99 initializers.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

---
irq.c | 14 +++++++-------
irq_intc.c | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
---
diff -urN 2.6.11-rc5.orig/arch/sh64/kernel/irq.c 2.6.11-rc5/arch/sh64/kernel/irq.c
--- 2.6.11-rc5.orig/arch/sh64/kernel/irq.c 2004-12-24 22:34:01.000000000 +0100
+++ 2.6.11-rc5/arch/sh64/kernel/irq.c 2005-02-26 20:54:19.000000000 +0100
@@ -81,13 +81,13 @@
#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
};

#if defined(CONFIG_PROC_FS)
diff -urN 2.6.11-rc5.orig/arch/sh64/kernel/irq_intc.c 2.6.11-rc5/arch/sh64/kernel/irq_intc.c
--- 2.6.11-rc5.orig/arch/sh64/kernel/irq_intc.c 2004-12-24 22:35:40.000000000 +0100
+++ 2.6.11-rc5/arch/sh64/kernel/irq_intc.c 2005-02-26 20:54:19.000000000 +0100
@@ -107,13 +107,13 @@
static void end_intc_irq(unsigned int irq);

static struct hw_interrupt_type intc_irq_type = {
- "INTC",
- startup_intc_irq,
- shutdown_intc_irq,
- enable_intc_irq,
- disable_intc_irq,
- mask_and_ack_intc,
- end_intc_irq
+ .typename = "INTC",
+ .startup = startup_intc_irq,
+ .shutdown = shutdown_intc_irq,
+ .enable = enable_intc_irq,
+ .disable = disable_intc_irq,
+ .ack = mask_and_ack_intc,
+ .end = end_intc_irq
};

static int irlm; /* IRL mode */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/