Skip to content

Commit

Permalink
[ARM] pxa: remove boot time RTC initialisation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Jul 12, 2007
1 parent 2aca0a8 commit 4adb70f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions arch/arm/mach-pxa/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
#include <asm/arch/pxa-regs.h>


static inline unsigned long pxa_get_rtc_time(void)
{
return RCNR;
}

static int pxa_set_rtc(void)
{
unsigned long current_time = xtime.tv_sec;
Expand Down Expand Up @@ -122,10 +117,6 @@ static void __init pxa_timer_init(void)

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 */
OSSR = 0xf; /* clear status on all timers */
setup_irq(IRQ_OST0, &pxa_timer_irq);
Expand Down

0 comments on commit 4adb70f

Please sign in to comment.