提交 f9a8ca1c 编写于 作者: K Kevin Hilman 提交者: Russell King

[ARM] 3985/1: ixp4xx clocksource cleanup

Rather than using a device_initcall() for the clocksource initialization, just call the init from the sys_timer init function.
Signed-off-by: NKevin Hilman <khilman@mvista.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 a47d08e2
......@@ -40,6 +40,8 @@
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
static int __init ixp4xx_clocksource_init(void);
/*************************************************************************
* IXP4xx chipset I/O mapping
*************************************************************************/
......@@ -281,6 +283,8 @@ static void __init ixp4xx_timer_init(void)
/* Connect the interrupt handler and enable the interrupt */
setup_irq(IRQ_IXP4XX_TIMER1, &ixp4xx_timer_irq);
ixp4xx_clocksource_init();
}
struct sys_timer ixp4xx_timer = {
......@@ -404,5 +408,3 @@ static int __init ixp4xx_clocksource_init(void)
return 0;
}
device_initcall(ixp4xx_clocksource_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册