diff options
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/sh_cmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index ed8e07b97e27..a44611652282 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c | |||
@@ -445,7 +445,7 @@ static int sh_cmt_register_clocksource(struct sh_cmt_priv *p, | |||
445 | 445 | ||
446 | /* clk_get_rate() needs an enabled clock */ | 446 | /* clk_get_rate() needs an enabled clock */ |
447 | clk_enable(p->clk); | 447 | clk_enable(p->clk); |
448 | p->rate = clk_get_rate(p->clk) / (p->width == 16) ? 512 : 8; | 448 | p->rate = clk_get_rate(p->clk) / ((p->width == 16) ? 512 : 8); |
449 | clk_disable(p->clk); | 449 | clk_disable(p->clk); |
450 | 450 | ||
451 | /* TODO: calculate good shift from rate and counter bit width */ | 451 | /* TODO: calculate good shift from rate and counter bit width */ |