summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/kernel/csrc-mn10300.c
diff options
context:
space:
mode:
authorThomas Gleixner2011-03-18 17:52:50 +0100
committerDavid Howells2011-03-18 17:52:50 +0100
commit817890ba15df44181bc9c2bf7527cb066ebae06f (patch)
treed6cf5a0e5a023894ab5fe8bdb1a64bdaf4c12f77 /arch/mn10300/kernel/csrc-mn10300.c
parentMN10300: Remove stale code (diff)
downloadkernel-qcow2-linux-817890ba15df44181bc9c2bf7527cb066ebae06f.tar.gz
kernel-qcow2-linux-817890ba15df44181bc9c2bf7527cb066ebae06f.tar.xz
kernel-qcow2-linux-817890ba15df44181bc9c2bf7527cb066ebae06f.zip
MN10300: Use clocksource_register_hz()
clocksource_register_hz() calculates the shift/mult pair for the clocksource. Remove the mn10300 duplicate implementation. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <johnstul@us.ibm.com> Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com> Cc: Mark Salter <msalter@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/kernel/csrc-mn10300.c')
-rw-r--r--arch/mn10300/kernel/csrc-mn10300.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mn10300/kernel/csrc-mn10300.c b/arch/mn10300/kernel/csrc-mn10300.c
index ba2f0c4d6e01..45644cf18c41 100644
--- a/arch/mn10300/kernel/csrc-mn10300.c
+++ b/arch/mn10300/kernel/csrc-mn10300.c
@@ -29,7 +29,6 @@ static struct clocksource clocksource_mn10300 = {
int __init init_clocksource(void)
{
startup_timestamp_counter();
- clocksource_set_clock(&clocksource_mn10300, MN10300_TSCCLK);
- clocksource_register(&clocksource_mn10300);
+ clocksource_register_hz(&clocksource_mn10300, MN10300_TSCCLK);
return 0;
}