summaryrefslogtreecommitdiff
path: root/arch/m68k/platform/coldfire/dma_timer.c
diff options
context:
space:
mode:
authorjohn stultz <johnstul@us.ibm.com>2011-10-25 11:46:10 -0700
committerGreg Ungerer <gerg@uclinux.org>2011-12-24 21:47:56 +1000
commita2a3dfb8efc5d14cf39358ae0ec1da39667c2e6c (patch)
tree548ecc8c617eba4ed8b1b61de8d906d3b5b35096 /arch/m68k/platform/coldfire/dma_timer.c
parent5f0a6e2d503896062f641639dacfe5055c2f593b (diff)
clocksource: m86k: Convert to clocksource_register_hz/khz
Updated to merge the valid bits of the two m68k patches. This converts the m86k clocksources to use clocksource_register_hz/khz This is untested, so any assistance in testing would be appreciated! CC: Geert Uytterhoeven <geert@linux-m68k.org> CC: Greg Ungerer <gerg@uclinux.org> Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/platform/coldfire/dma_timer.c')
-rw-r--r--arch/m68k/platform/coldfire/dma_timer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/m68k/platform/coldfire/dma_timer.c b/arch/m68k/platform/coldfire/dma_timer.c
index a5f562823d7a..235ad57c4707 100644
--- a/arch/m68k/platform/coldfire/dma_timer.c
+++ b/arch/m68k/platform/coldfire/dma_timer.c
@@ -44,7 +44,6 @@ static struct clocksource clocksource_cf_dt = {
.rating = 200,
.read = cf_dt_get_cycles,
.mask = CLOCKSOURCE_MASK(32),
- .shift = 20,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};
@@ -60,9 +59,7 @@ static int __init init_cf_dt_clocksource(void)
__raw_writeb(0x00, DTER0);
__raw_writel(0x00000000, DTRR0);
__raw_writew(DMA_DTMR_CLK_DIV_16 | DMA_DTMR_ENABLE, DTMR0);
- clocksource_cf_dt.mult = clocksource_hz2mult(DMA_FREQ,
- clocksource_cf_dt.shift);
- return clocksource_register(&clocksource_cf_dt);
+ return clocksource_register_hz(&clocksource_cf_dt, DMA_FREQ);
}
arch_initcall(init_cf_dt_clocksource);