diff mbox

OMAP: DMTIMER: Ack pending interrupt always when stopping a timer

Message ID 1274797036-21107-1-git-send-email-tero.kristo@nokia.com (mailing list archive)
State Accepted
Commit f5c002d8cea4c04b45fe0437616a3be55a966296
Headers show

Commit Message

Tero Kristo May 25, 2010, 2:17 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c
index c64875f..023d664 100644
--- a/arch/arm/plat-omap/dmtimer.c
+++ b/arch/arm/plat-omap/dmtimer.c
@@ -541,11 +541,13 @@  void omap_dm_timer_stop(struct omap_dm_timer *timer)
 		  * timer is stopped
 		  */
 		udelay(3500000 / clk_get_rate(timer->fclk) + 1);
-		/* Ack possibly pending interrupt */
-		omap_dm_timer_write_reg(timer, OMAP_TIMER_STAT_REG,
-				OMAP_TIMER_INT_OVERFLOW);
 #endif
 	}
+#ifdef CONFIG_ARCH_OMAP2PLUS
+	/* Ack possibly pending interrupt */
+	omap_dm_timer_write_reg(timer, OMAP_TIMER_STAT_REG,
+			OMAP_TIMER_INT_OVERFLOW);
+#endif
 }
 EXPORT_SYMBOL_GPL(omap_dm_timer_stop);