aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/timers
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-11-19 21:18:30 -0500
committerPaul Mundt <lethal@linux-sh.org>2006-12-05 20:45:37 -0500
commit417528a2e35f46bc42721de5c4efd33a0eba019d (patch)
tree622d88ef2f82910063e841fd70d8720465c4dcef /arch/sh/kernel/timers
parent716067f28931d46b9f460acbeae1478a337e58ec (diff)
sh: Configurable timer IRQ.
All of the various CPU subtypes currently hardcode TIMER_IRQ, switch this to a config option in the few places we need this. This allows further removal of hardcoded IRQ headers.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/timers')
-rw-r--r--arch/sh/kernel/timers/timer-cmt.c2
-rw-r--r--arch/sh/kernel/timers/timer-mtu2.c2
-rw-r--r--arch/sh/kernel/timers/timer-tmu.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/kernel/timers/timer-cmt.c b/arch/sh/kernel/timers/timer-cmt.c
index 30687383d4b0..24b03996da51 100644
--- a/arch/sh/kernel/timers/timer-cmt.c
+++ b/arch/sh/kernel/timers/timer-cmt.c
@@ -169,7 +169,7 @@ static int cmt_timer_init(void)
169 169
170 cmt_clock_enable(); 170 cmt_clock_enable();
171 171
172 setup_irq(TIMER_IRQ, &cmt_irq); 172 setup_irq(CONFIG_SH_TIMER_IRQ, &cmt_irq);
173 173
174 cmt0_clk.parent = clk_get("module_clk"); 174 cmt0_clk.parent = clk_get("module_clk");
175 175
diff --git a/arch/sh/kernel/timers/timer-mtu2.c b/arch/sh/kernel/timers/timer-mtu2.c
index 045b2aba13fa..92c98b5b11ea 100644
--- a/arch/sh/kernel/timers/timer-mtu2.c
+++ b/arch/sh/kernel/timers/timer-mtu2.c
@@ -167,7 +167,7 @@ static int mtu2_timer_init(void)
167 u8 tmp; 167 u8 tmp;
168 unsigned long interval; 168 unsigned long interval;
169 169
170 setup_irq(TIMER_IRQ, &mtu2_irq); 170 setup_irq(CONFIG_SH_TIMER_IRQ, &mtu2_irq);
171 171
172 mtu2_clk1.parent = clk_get("module_clk"); 172 mtu2_clk1.parent = clk_get("module_clk");
173 173
diff --git a/arch/sh/kernel/timers/timer-tmu.c b/arch/sh/kernel/timers/timer-tmu.c
index 24927015dc31..06a70db7386d 100644
--- a/arch/sh/kernel/timers/timer-tmu.c
+++ b/arch/sh/kernel/timers/timer-tmu.c
@@ -149,7 +149,7 @@ static int tmu_timer_init(void)
149{ 149{
150 unsigned long interval; 150 unsigned long interval;
151 151
152 setup_irq(TIMER_IRQ, &tmu_irq); 152 setup_irq(CONFIG_SH_TIMER_IRQ, &tmu_irq);
153 153
154 tmu0_clk.parent = clk_get("module_clk"); 154 tmu0_clk.parent = clk_get("module_clk");
155 155