Skip to content

Commit

Permalink
ARM: clps711x: Remove the setting of the time
Browse files Browse the repository at this point in the history
This patch fixes "bug: interrupts were enabled early" due to
do_settimeofday() which used in common code for clps711x-platform.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Alexander Shiyan authored and Arnd Bergmann committed Jul 17, 2012
1 parent 3785d2d commit 0da4718
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/arm/mach-clps711x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/sched.h>
#include <linux/timex.h>

#include <asm/sizes.h>
#include <mach/hardware.h>
Expand Down Expand Up @@ -188,7 +187,6 @@ static struct irqaction clps711x_timer_irq = {

static void __init clps711x_timer_init(void)
{
struct timespec tv;
unsigned int syscon;

syscon = clps_readl(SYSCON1);
Expand All @@ -198,10 +196,6 @@ static void __init clps711x_timer_init(void)
clps_writel(LATCH-1, TC2D); /* 512kHz / 100Hz - 1 */

setup_irq(IRQ_TC2OI, &clps711x_timer_irq);

tv.tv_nsec = 0;
tv.tv_sec = clps_readl(RTCDR);
do_settimeofday(&tv);
}

struct sys_timer clps711x_timer = {
Expand Down

0 comments on commit 0da4718

Please sign in to comment.