diff options
author | Magnus Damm <damm@igel.co.jp> | 2007-07-18 04:57:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-19 23:18:20 -0400 |
commit | 90015c89386ffb8967422fbe9f5e7babf1dc2c5e (patch) | |
tree | 390d23e35d497237c8ff06b95c41cda4a92bb1d5 /arch/sh/kernel/cpu/sh4/setup-sh7760.c | |
parent | 493a358e0a8992ec13098dd084223b55b05a7f03 (diff) |
sh: IPR/INTC2 IRQ setup consolidation.
This patch unifies the cpu specific interrupt setup functions for
interrupt controller blocks such as ipr, intc2 and intc. There is no
point in having separate functions for each interrupt controller, so
let's clean this up.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/setup-sh7760.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7760.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index 3df169755673..47fa27056253 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -109,11 +109,6 @@ static struct intc2_desc intc2_irq_desc __read_mostly = { | |||
109 | }, | 109 | }, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | void __init init_IRQ_intc2(void) | ||
113 | { | ||
114 | register_intc2_controller(&intc2_irq_desc); | ||
115 | } | ||
116 | |||
117 | static struct ipr_data ipr_irq_table[] = { | 112 | static struct ipr_data ipr_irq_table[] = { |
118 | /* IRQ, IPR-idx, shift, priority */ | 113 | /* IRQ, IPR-idx, shift, priority */ |
119 | { 16, 0, 12, 2 }, /* TMU0 TUNI*/ | 114 | { 16, 0, 12, 2 }, /* TMU0 TUNI*/ |
@@ -163,7 +158,8 @@ static struct ipr_desc ipr_irq_desc = { | |||
163 | }, | 158 | }, |
164 | }; | 159 | }; |
165 | 160 | ||
166 | void __init init_IRQ_ipr(void) | 161 | void __init plat_irq_setup(void) |
167 | { | 162 | { |
163 | register_intc2_controller(&intc2_irq_desc); | ||
168 | register_ipr_controller(&ipr_irq_desc); | 164 | register_ipr_controller(&ipr_irq_desc); |
169 | } | 165 | } |