clocksource: dbx500: convert to clocksource_register_hz()
authorYong Zhang <yong.zhang0@gmail.com>
Thu, 1 Dec 2011 07:20:15 +0000 (15:20 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 2 Feb 2012 02:37:37 +0000 (18:37 -0800)
Convert clocksource_dbx500_prcmu to use clocksource_register_hz.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mattias Wallin <mattias.wallin@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/clocksource/clksrc-dbx500-prcmu.c

index fb6b6d2..c26c369 100644 (file)
@@ -52,7 +52,6 @@ static struct clocksource clocksource_dbx500_prcmu = {
        .name           = "dbx500-prcmu-timer",
        .rating         = 300,
        .read           = clksrc_dbx500_prcmu_read,
-       .shift          = 10,
        .mask           = CLOCKSOURCE_MASK(32),
        .flags          = CLOCK_SOURCE_IS_CONTINUOUS,
 };
@@ -90,7 +89,5 @@ void __init clksrc_dbx500_prcmu_init(void __iomem *base)
        setup_sched_clock(dbx500_prcmu_sched_clock_read,
                         32, RATE_32K);
 #endif
-       clocksource_calc_mult_shift(&clocksource_dbx500_prcmu,
-                                   RATE_32K, SCHED_CLOCK_MIN_WRAP);
-       clocksource_register(&clocksource_dbx500_prcmu);
+       clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
 }