]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-at91rm9200/at91rm9200_time.c
[ARM] 3955/1: AT91: Clear timer interrupt when resuming
[linux-2.6-omap-h63xx.git] / arch / arm / mach-at91rm9200 / at91rm9200_time.c
index 8e9c049c8b7c3d6c8b30cec0ca9831e5795af6a9..b999e192a7e9c22719cd83c8cdc254584dc299df 100644 (file)
@@ -101,6 +101,9 @@ void at91rm9200_timer_reset(void)
        /* Set Period Interval timer */
        at91_sys_write(AT91_ST_PIMR, LATCH);
 
+       /* Clear any pending interrupts */
+       (void) at91_sys_read(AT91_ST_SR);
+
        /* Enable Period Interval Timer interrupt */
        at91_sys_write(AT91_ST_IER, AT91_ST_PITS);
 }