Commit 6a61f6a5 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Thomas Gleixner

x86: clean up struct irqaction initializers

clean up struct irqaction initializers to C99.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 6d43be8e
...@@ -349,7 +349,11 @@ static irqreturn_t math_error_irq(int cpl, void *dev_id) ...@@ -349,7 +349,11 @@ static irqreturn_t math_error_irq(int cpl, void *dev_id)
* New motherboards sometimes make IRQ 13 be a PCI interrupt, * New motherboards sometimes make IRQ 13 be a PCI interrupt,
* so allow interrupt sharing. * so allow interrupt sharing.
*/ */
static struct irqaction fpu_irq = { math_error_irq, 0, CPU_MASK_NONE, "fpu", NULL, NULL }; static struct irqaction fpu_irq = {
.handler = math_error_irq,
.mask = CPU_MASK_NONE,
.name = "fpu",
};
void __init init_ISA_irqs (void) void __init init_ISA_irqs (void)
{ {
......
...@@ -35,7 +35,11 @@ void __init pre_intr_init_hook(void) ...@@ -35,7 +35,11 @@ void __init pre_intr_init_hook(void)
/* /*
* IRQ2 is cascade interrupt to second interrupt controller * IRQ2 is cascade interrupt to second interrupt controller
*/ */
static struct irqaction irq2 = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL}; static struct irqaction irq2 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};
/** /**
* intr_init_hook - post gate setup interrupt initialisation * intr_init_hook - post gate setup interrupt initialisation
......
...@@ -18,7 +18,11 @@ void __init pre_intr_init_hook(void) ...@@ -18,7 +18,11 @@ void __init pre_intr_init_hook(void)
/* /*
* IRQ2 is cascade interrupt to second interrupt controller * IRQ2 is cascade interrupt to second interrupt controller
*/ */
static struct irqaction irq2 = { no_action, 0, CPU_MASK_NONE, "cascade", NULL, NULL}; static struct irqaction irq2 = {
.handler = no_action,
.mask = CPU_MASK_NONE,
.name = "cascade",
};
void __init intr_init_hook(void) void __init intr_init_hook(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment