diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2005-09-10 03:26:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:27 -0400 |
commit | 08d0fd07c3f0b6e561260f0b078d03d6fa1ac59f (patch) | |
tree | 7b3a127baae49a37952a8c015fe24e9567bce2a8 /arch/sh/kernel | |
parent | 2830e21eb3c600865245478cd7a28ae73191b6b7 (diff) |
[PATCH] SH: C99 initializers for hw_interrupt_type structures
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>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/irq_imask.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/irq_ipr.c | 28 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/irq_intc2.c | 14 |
3 files changed, 28 insertions, 28 deletions
diff --git a/arch/sh/kernel/cpu/irq_imask.c b/arch/sh/kernel/cpu/irq_imask.c index f76901e732fb..a963d00a971e 100644 --- a/arch/sh/kernel/cpu/irq_imask.c +++ b/arch/sh/kernel/cpu/irq_imask.c | |||
@@ -46,13 +46,13 @@ static unsigned int startup_imask_irq(unsigned int irq) | |||
46 | } | 46 | } |
47 | 47 | ||
48 | static struct hw_interrupt_type imask_irq_type = { | 48 | static struct hw_interrupt_type imask_irq_type = { |
49 | "SR.IMASK", | 49 | .typename = "SR.IMASK", |
50 | startup_imask_irq, | 50 | .startup = startup_imask_irq, |
51 | shutdown_imask_irq, | 51 | .shutdown = shutdown_imask_irq, |
52 | enable_imask_irq, | 52 | .enable = enable_imask_irq, |
53 | disable_imask_irq, | 53 | .disable = disable_imask_irq, |
54 | mask_and_ack_imask, | 54 | .ack = mask_and_ack_imask, |
55 | end_imask_irq | 55 | .end = end_imask_irq |
56 | }; | 56 | }; |
57 | 57 | ||
58 | void static inline set_interrupt_registers(int ip) | 58 | void static inline set_interrupt_registers(int ip) |
diff --git a/arch/sh/kernel/cpu/irq_ipr.c b/arch/sh/kernel/cpu/irq_ipr.c index 7ea3d2d030e5..71f92096132b 100644 --- a/arch/sh/kernel/cpu/irq_ipr.c +++ b/arch/sh/kernel/cpu/irq_ipr.c | |||
@@ -48,13 +48,13 @@ static unsigned int startup_ipr_irq(unsigned int irq) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | static struct hw_interrupt_type ipr_irq_type = { | 50 | static struct hw_interrupt_type ipr_irq_type = { |
51 | "IPR-IRQ", | 51 | .typename = "IPR-IRQ", |
52 | startup_ipr_irq, | 52 | .startup = startup_ipr_irq, |
53 | shutdown_ipr_irq, | 53 | .shutdown = shutdown_ipr_irq, |
54 | enable_ipr_irq, | 54 | .enable = enable_ipr_irq, |
55 | disable_ipr_irq, | 55 | .disable = disable_ipr_irq, |
56 | mask_and_ack_ipr, | 56 | .ack = mask_and_ack_ipr, |
57 | end_ipr_irq | 57 | .end = end_ipr_irq |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static void disable_ipr_irq(unsigned int irq) | 60 | static void disable_ipr_irq(unsigned int irq) |
@@ -142,13 +142,13 @@ static unsigned int startup_pint_irq(unsigned int irq) | |||
142 | } | 142 | } |
143 | 143 | ||
144 | static struct hw_interrupt_type pint_irq_type = { | 144 | static struct hw_interrupt_type pint_irq_type = { |
145 | "PINT-IRQ", | 145 | .typename = "PINT-IRQ", |
146 | startup_pint_irq, | 146 | .startup = startup_pint_irq, |
147 | shutdown_pint_irq, | 147 | .shutdown = shutdown_pint_irq, |
148 | enable_pint_irq, | 148 | .enable = enable_pint_irq, |
149 | disable_pint_irq, | 149 | .disable = disable_pint_irq, |
150 | mask_and_ack_pint, | 150 | .ack = mask_and_ack_pint, |
151 | end_pint_irq | 151 | .end = end_pint_irq |
152 | }; | 152 | }; |
153 | 153 | ||
154 | static void disable_pint_irq(unsigned int irq) | 154 | static void disable_pint_irq(unsigned int irq) |
diff --git a/arch/sh/kernel/cpu/sh4/irq_intc2.c b/arch/sh/kernel/cpu/sh4/irq_intc2.c index 099ebbf89745..f6b16ba01932 100644 --- a/arch/sh/kernel/cpu/sh4/irq_intc2.c +++ b/arch/sh/kernel/cpu/sh4/irq_intc2.c | |||
@@ -48,13 +48,13 @@ static unsigned int startup_intc2_irq(unsigned int irq) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | static struct hw_interrupt_type intc2_irq_type = { | 50 | static struct hw_interrupt_type intc2_irq_type = { |
51 | "INTC2-IRQ", | 51 | .typename = "INTC2-IRQ", |
52 | startup_intc2_irq, | 52 | .startup = startup_intc2_irq, |
53 | shutdown_intc2_irq, | 53 | .shutdown = shutdown_intc2_irq, |
54 | enable_intc2_irq, | 54 | .enable = enable_intc2_irq, |
55 | disable_intc2_irq, | 55 | .disable = disable_intc2_irq, |
56 | mask_and_ack_intc2, | 56 | .ack = mask_and_ack_intc2, |
57 | end_intc2_irq | 57 | .end = end_intc2_irq |
58 | }; | 58 | }; |
59 | 59 | ||
60 | static void disable_intc2_irq(unsigned int irq) | 60 | static void disable_intc2_irq(unsigned int irq) |