Signed-off-by: Antony Pavlov <[email protected]>
---
 arch/mips/mach-xburst/csrc-jz4750.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/mips/mach-xburst/csrc-jz4750.c 
b/arch/mips/mach-xburst/csrc-jz4750.c
index dc7135a..36e401e 100644
--- a/arch/mips/mach-xburst/csrc-jz4750.c
+++ b/arch/mips/mach-xburst/csrc-jz4750.c
@@ -38,12 +38,13 @@ static uint64_t jz4750_cs_read(void)
 static struct clocksource jz4750_cs = {
        .read   = jz4750_cs_read,
        .mask   = CLOCKSOURCE_MASK(32),
-       .shift  = 10,
 };
 
 static int clocksource_init(void)
 {
-       jz4750_cs.mult = clocksource_hz2mult(JZ_TIMER_CLOCK, jz4750_cs.shift);
+       clocks_calc_mult_shift(&jz4750_cs.mult, &jz4750_cs.shift,
+               JZ_TIMER_CLOCK, NSEC_PER_SEC, 10);
+
        init_clock(&jz4750_cs);
 
        __raw_writel(TCU_OSTCSR_PRESCALE1 | TCU_OSTCSR_EXT_EN,
-- 
1.7.10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to