aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/time.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-06-27 09:57:32 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-07-12 14:28:17 +0100
commit4adb70fc1b9b545ce6221f0cc35a8fa0eab13461 (patch)
tree1e7020940c3e97876f623fa5b3e17723f5fc5cfc /arch/arm/mach-pxa/time.c
parent[ARM] pxa: stop doing our own rtc management over suspend (diff)
downloadlinux-dev-4adb70fc1b9b545ce6221f0cc35a8fa0eab13461.tar.xz
linux-dev-4adb70fc1b9b545ce6221f0cc35a8fa0eab13461.zip
[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>
Diffstat (limited to 'arch/arm/mach-pxa/time.c')
-rw-r--r--arch/arm/mach-pxa/time.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c
index 5248abe334d2..6f91fd2d061a 100644
--- a/arch/arm/mach-pxa/time.c
+++ b/arch/arm/mach-pxa/time.c
@@ -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;
@@ -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);