diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2011-12-01 15:20:15 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-02-01 18:37:37 -0800 |
commit | 13f0f030fb9d52c7fd48f3e6a2fe9ab0123875da (patch) | |
tree | ef43843b1b542b4b764fbb9b64ba9cc55b48fcac | |
parent | d976f7626627117c211137cd2aaf8c1656e6627d (diff) |
clocksource: dbx500: convert to clocksource_register_hz()
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>
-rw-r--r-- | drivers/clocksource/clksrc-dbx500-prcmu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/clocksource/clksrc-dbx500-prcmu.c b/drivers/clocksource/clksrc-dbx500-prcmu.c index fb6b6d28b60e..c26c369eb9e6 100644 --- a/drivers/clocksource/clksrc-dbx500-prcmu.c +++ b/drivers/clocksource/clksrc-dbx500-prcmu.c @@ -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); } |