]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cmd640.c: fix PCI type1 access
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Mon, 5 Jan 2004 13:39:01 +0000 (05:39 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 5 Jan 2004 13:39:01 +0000 (05:39 -0800)
Revert wrong changes introduced in 2.4.21.

From: Stefan Talpalaru <stefantalpalaru@yahoo.com>,
      Ingo Kilian <ikilian@web.de>.

drivers/ide/pci/cmd640.c

index bfba1336126fc6708cca80d76be13618e7b59700..08a74cdb6605b9220bf1745df14477e2a73a37ab 100644 (file)
@@ -213,13 +213,13 @@ static unsigned int cmd640_chip_version;
 
 static void put_cmd640_reg_pci1 (u16 reg, u8 val)
 {
-       outb_p((reg & 0xfc) | cmd640_key, 0xcf8);
+       outl_p((reg & 0xfc) | cmd640_key, 0xcf8);
        outb_p(val, (reg & 3) | 0xcfc);
 }
 
 static u8 get_cmd640_reg_pci1 (u16 reg)
 {
-       outb_p((reg & 0xfc) | cmd640_key, 0xcf8);
+       outl_p((reg & 0xfc) | cmd640_key, 0xcf8);
        return inb_p((reg & 3) | 0xcfc);
 }