aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/timers
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-11-30 23:15:14 -0500
committerPaul Mundt <lethal@linux-sh.org>2006-12-05 20:45:40 -0500
commit1d118562c2067a42d0e8f70671a4ce27d7c6ffee (patch)
treefa59028397143d7fa94d86785bee8443efe30798 /arch/sh/kernel/timers
parente74b56800e78a10bc09b56a87831876a1d9d09ae (diff)
sh: Clock framework tidying.
This syncs up the SH clock framework with the linux/clk.h API, for which there were only some minor changes required, namely the clk_get() dev_id and subsequent callsites. 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.c4
-rw-r--r--arch/sh/kernel/timers/timer-mtu2.c2
-rw-r--r--arch/sh/kernel/timers/timer-tmu.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/timers/timer-cmt.c b/arch/sh/kernel/timers/timer-cmt.c
index 95581dccbbfd..a574b93a4e7b 100644
--- a/arch/sh/kernel/timers/timer-cmt.c
+++ b/arch/sh/kernel/timers/timer-cmt.c
@@ -124,7 +124,7 @@ static void cmt_clk_init(struct clk *clk)
124 u8 divisor = CMT_CMCSR_INIT & 0x3; 124 u8 divisor = CMT_CMCSR_INIT & 0x3;
125 ctrl_inw(CMT_CMCSR_0); 125 ctrl_inw(CMT_CMCSR_0);
126 ctrl_outw(CMT_CMCSR_INIT, CMT_CMCSR_0); 126 ctrl_outw(CMT_CMCSR_INIT, CMT_CMCSR_0);
127 clk->parent = clk_get("module_clk"); 127 clk->parent = clk_get(NULL, "module_clk");
128 clk->rate = clk->parent->rate / (8 << (divisor << 1)); 128 clk->rate = clk->parent->rate / (8 << (divisor << 1));
129} 129}
130 130
@@ -164,7 +164,7 @@ static int cmt_timer_init(void)
164 164
165 setup_irq(CONFIG_SH_TIMER_IRQ, &cmt_irq); 165 setup_irq(CONFIG_SH_TIMER_IRQ, &cmt_irq);
166 166
167 cmt0_clk.parent = clk_get("module_clk"); 167 cmt0_clk.parent = clk_get(NULL, "module_clk");
168 168
169 cmt_timer_stop(); 169 cmt_timer_stop();
170 170
diff --git a/arch/sh/kernel/timers/timer-mtu2.c b/arch/sh/kernel/timers/timer-mtu2.c
index 201f0a62132f..fffcd1c09873 100644
--- a/arch/sh/kernel/timers/timer-mtu2.c
+++ b/arch/sh/kernel/timers/timer-mtu2.c
@@ -161,7 +161,7 @@ static int mtu2_timer_init(void)
161 161
162 setup_irq(CONFIG_SH_TIMER_IRQ, &mtu2_irq); 162 setup_irq(CONFIG_SH_TIMER_IRQ, &mtu2_irq);
163 163
164 mtu2_clk1.parent = clk_get("module_clk"); 164 mtu2_clk1.parent = clk_get(NULL, "module_clk");
165 165
166 ctrl_outb(ctrl_inb(STBCR3) & (~0x20), STBCR3); 166 ctrl_outb(ctrl_inb(STBCR3) & (~0x20), STBCR3);
167 167
diff --git a/arch/sh/kernel/timers/timer-tmu.c b/arch/sh/kernel/timers/timer-tmu.c
index b9ed8a387555..e060e71d0785 100644
--- a/arch/sh/kernel/timers/timer-tmu.c
+++ b/arch/sh/kernel/timers/timer-tmu.c
@@ -144,7 +144,7 @@ static int tmu_timer_init(void)
144 144
145 setup_irq(CONFIG_SH_TIMER_IRQ, &tmu_irq); 145 setup_irq(CONFIG_SH_TIMER_IRQ, &tmu_irq);
146 146
147 tmu0_clk.parent = clk_get("module_clk"); 147 tmu0_clk.parent = clk_get(NULL, "module_clk");
148 148
149 /* Start TMU0 */ 149 /* Start TMU0 */
150 tmu_timer_stop(); 150 tmu_timer_stop();