]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] IP22: fix wrong argument order
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Sep 2007 10:43:55 +0000 (12:43 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 11 Sep 2007 18:03:26 +0000 (19:03 +0100)
Fix wrong argument order; this is just a minimal fix for the half baked
redadb/writeb() conversion.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip22/ip22-time.c

index 8e88a442b22a9bb37237bb025bd22af5e24065fe..de3d01823ad54b48a7d0726a607bc6730d15603f 100644 (file)
@@ -114,8 +114,8 @@ static unsigned long dosample(void)
        } while (msb);
 
        /* Stop the counter. */
-       writeb(sgint->tcword, (SGINT_TCWORD_CNT2 | SGINT_TCWORD_CALL |
-                              SGINT_TCWORD_MSWST));
+       writeb(SGINT_TCWORD_CNT2 | SGINT_TCWORD_CALL | SGINT_TCWORD_MSWST,
+              &sgint->tcword);
        /*
         * Return the difference, this is how far the r4k counter increments
         * for every 1/HZ seconds. We round off the nearest 1 MHz of master