Skip to content

Commit

Permalink
clocksource: dbx500: convert to clocksource_register_hz()
Browse files Browse the repository at this point in the history
Convert clocksource_dbx500_prcmu to use clocksource_register_hz.

Cc: Thomas Gleixner <[email protected]>
Cc: Mattias Wallin <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Yong Zhang <[email protected]>
Signed-off-by: John Stultz <[email protected]>
  • Loading branch information
yongzhang0 authored and johnstultz-work committed Feb 2, 2012
1 parent d976f76 commit 13f0f03
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/clocksource/clksrc-dbx500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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);
}

0 comments on commit 13f0f03

Please sign in to comment.