clocksource: m86k: Convert to clocksource_register_hz/khz
This converts the m86k clocksources to use clocksource_register_hz/khz CC: Geert Uytterhoeven <geert@linux-m68k.org> CC: Greg Ungerer <gerg@uclinux.org> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: John Stultz <johnstul@us.ibm.com>
This commit is contained in:
@@ -144,7 +144,6 @@ static struct clocksource pit_clk = {
|
||||
.name = "pit",
|
||||
.rating = 100,
|
||||
.read = pit_read_clk,
|
||||
.shift = 20,
|
||||
.mask = CLOCKSOURCE_MASK(32),
|
||||
};
|
||||
|
||||
@@ -162,8 +161,7 @@ void hw_timer_init(void)
|
||||
|
||||
setup_irq(MCFINT_VECBASE + MCFINT_PIT1, &pit_irq);
|
||||
|
||||
pit_clk.mult = clocksource_hz2mult(FREQ, pit_clk.shift);
|
||||
clocksource_register(&pit_clk);
|
||||
clocksource_register_hz(&pit_clk, FREQ);
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
Reference in New Issue
Block a user