Skip to content

Commit

Permalink
clocksource: sh_cmt: Fix up bogus shift value.
Browse files Browse the repository at this point in the history
The previous CMT fixup accidentally copied in the TMU shift value, reset
this back to its original value while preserving the TMU fix.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jun 22, 2010
1 parent 0e6f989 commit 5967d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/sh_cmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static int sh_cmt_register_clocksource(struct sh_cmt_priv *p,
clk_disable(p->clk);

/* TODO: calculate good shift from rate and counter bit width */
cs->shift = 10;
cs->shift = 0;
cs->mult = clocksource_hz2mult(p->rate, cs->shift);

dev_info(&p->pdev->dev, "used as clock source\n");
Expand Down

0 comments on commit 5967d33

Please sign in to comment.