aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/timers/timer-cmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/timers/timer-cmt.c')
-rw-r--r--arch/sh/kernel/timers/timer-cmt.c4
1 files changed, 2 insertions, 2 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