浏览代码

[ARM] pxa: remove boot time RTC initialisation

The RTC library code contains everything necessary to set the
system time from the RTC; for similar reasons as the previous
commit, it's far better to let the RTC library code sort this
out rather than implement something which might not be
appropriate for everyone.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King 18 年之前
父节点
当前提交
4adb70fc1b
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      arch/arm/mach-pxa/time.c

+ 0 - 9
arch/arm/mach-pxa/time.c

@@ -30,11 +30,6 @@
 #include <asm/arch/pxa-regs.h>
 #include <asm/arch/pxa-regs.h>
 
 
 
 
-static inline unsigned long pxa_get_rtc_time(void)
-{
-	return RCNR;
-}
-
 static int pxa_set_rtc(void)
 static int pxa_set_rtc(void)
 {
 {
 	unsigned long current_time = xtime.tv_sec;
 	unsigned long current_time = xtime.tv_sec;
@@ -122,10 +117,6 @@ static void __init pxa_timer_init(void)
 
 
 	set_rtc = pxa_set_rtc;
 	set_rtc = pxa_set_rtc;
 
 
-	tv.tv_nsec = 0;
-	tv.tv_sec = pxa_get_rtc_time();
-	do_settimeofday(&tv);
-
 	OIER = 0;		/* disable any timer interrupts */
 	OIER = 0;		/* disable any timer interrupts */
 	OSSR = 0xf;		/* clear status on all timers */
 	OSSR = 0xf;		/* clear status on all timers */
 	setup_irq(IRQ_OST0, &pxa_timer_irq);
 	setup_irq(IRQ_OST0, &pxa_timer_irq);