clocksource: sh_cmt: compute mult and shift before registration

commit f4d7c3565c upstream.

Based on the sh_tmu change in 66f49121ff
("clocksource: sh_tmu: compute mult and shift before registration").
The same issues impact the sh_cmt driver, so we take the same approach
here.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Paul Mundt 2010-06-02 17:10:44 +09:00 • committed by Greg Kroah-Hartman
commit 478fc4e6d2