]> git.hungrycats.org Git - linux/commitdiff
Stricter PCI IO space type checking uncovered a bug in sx8 driver.
authorLinus Torvalds <torvalds@evo.osdl.org>
Sun, 12 Sep 2004 03:30:42 +0000 (20:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 12 Sep 2004 03:30:42 +0000 (20:30 -0700)
Forgot to add in the mmio base..

drivers/block/sx8.c

index 0a0234129030781ab51fefa41f37f39d67ff6d62..81a82ab60a03831a0ae9befa920f928ab7a6ead8 100644 (file)
@@ -1414,7 +1414,7 @@ static int carm_init_host(struct carm_host *host)
        tmp8 = readb(mmio + CARM_INITC);
        if (tmp8 & 0x01) {
                tmp8 &= ~0x01;
-               writeb(tmp8, CARM_INITC);
+               writeb(tmp8, mmio + CARM_INITC);
                readb(mmio + CARM_INITC);       /* flush */
 
                DPRINTK("snooze...\n");