mxc: fix wrong register access in timer code
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 29 Apr 2009 11:55:13 +0000 (13:55 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 7 May 2009 14:20:28 +0000 (16:20 +0200)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/time.c

index 85f002e7f1e55a39b55cb1f05d11e921f657fa7d..88fb3a57e0299fcf25c61f4ea054f09601b64efd 100644 (file)
@@ -234,9 +234,9 @@ static irqreturn_t mxc_timer_interrupt(int irq, void *dev_id)
        uint32_t tstat;
 
        if (cpu_is_mx3())
-               tstat = __raw_readl(timer_base + MX1_2_TSTAT);
-       else
                tstat = __raw_readl(timer_base + MX3_TSTAT);
+       else
+               tstat = __raw_readl(timer_base + MX1_2_TSTAT);
 
        gpt_irq_acknowledge();