PPC64: C99 initializers for hw_interrupt_type
PATCH 1/1 PPC64: C99 initializers for hw_interrupt_type
This patch is from Thomas Gleixner <[email protected]>.
Convert the initializers of hw_interrupt_type structures to C99 initializers.
Signed-off-by Thomas Gleixner <[email protected]>
Signed-off-by Paul Mackerras <[email protected]>
arch/ppc64/kernel/i8259.c +5 -8
@@ -131,14 +131,11 @@ }struct hw_interrupt_type i8259_pic = { -" i8259 " , -NULL , -NULL , - i8259_unmask_irq, - i8259_mask_irq, - i8259_mask_and_ack_irq, - i8259_end_irq, -NULL + .typename =" i8259 " , + .enable = i8259_unmask_irq, + .disable = i8259_mask_irq, + .ack = i8259_mask_and_ack_irq, + .end = i8259_end_irq, };void __init i8259_init (int offset)