]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix timer32 oneshot mode
authorTony Lindgren <tony@atomide.com>
Tue, 25 Mar 2008 09:53:06 +0000 (11:53 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 25 Mar 2008 09:53:06 +0000 (11:53 +0200)
No need to start timer in oneshot mode as pointed out by
Russell King.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/timer32k.c

index c4af39ace5376d48a98b312cc49f1817b44234c8..fbbdb806c95a57e6f338250b6760605a43a064ba 100644 (file)
@@ -131,9 +131,9 @@ static void omap_32k_timer_set_mode(enum clock_event_mode mode,
 
        switch (mode) {
        case CLOCK_EVT_MODE_PERIODIC:
-       case CLOCK_EVT_MODE_ONESHOT:
                omap_32k_timer_start(OMAP_32K_TIMER_TICK_PERIOD);
                break;
+       case CLOCK_EVT_MODE_ONESHOT:
        case CLOCK_EVT_MODE_UNUSED:
        case CLOCK_EVT_MODE_SHUTDOWN:
                break;