diff options
author | Yong Zhang <yong.zhang0@gmail.com> | 2011-12-01 02:20:15 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-02-01 21:37:37 -0500 |
commit | 13f0f030fb9d52c7fd48f3e6a2fe9ab0123875da (patch) | |
tree | ef43843b1b542b4b764fbb9b64ba9cc55b48fcac /drivers/clocksource/clksrc-dbx500-prcmu.c | |
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>
Diffstat (limited to 'drivers/clocksource/clksrc-dbx500-prcmu.c')
-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 = { | |||
52 | .name = "dbx500-prcmu-timer", | 52 | .name = "dbx500-prcmu-timer", |
53 | .rating = 300, | 53 | .rating = 300, |
54 | .read = clksrc_dbx500_prcmu_read, | 54 | .read = clksrc_dbx500_prcmu_read, |
55 | .shift = 10, | ||
56 | .mask = CLOCKSOURCE_MASK(32), | 55 | .mask = CLOCKSOURCE_MASK(32), |
57 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 56 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
58 | }; | 57 | }; |
@@ -90,7 +89,5 @@ void __init clksrc_dbx500_prcmu_init(void __iomem *base) | |||
90 | setup_sched_clock(dbx500_prcmu_sched_clock_read, | 89 | setup_sched_clock(dbx500_prcmu_sched_clock_read, |
91 | 32, RATE_32K); | 90 | 32, RATE_32K); |
92 | #endif | 91 | #endif |
93 | clocksource_calc_mult_shift(&clocksource_dbx500_prcmu, | 92 | clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K); |
94 | RATE_32K, SCHED_CLOCK_MIN_WRAP); | ||
95 | clocksource_register(&clocksource_dbx500_prcmu); | ||
96 | } | 93 | } |