Commit 662247b3 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] cmd640.c: fix PCI type1 access

Revert wrong changes introduced in 2.4.21.

From: Stefan Talpalaru <stefantalpalaru@yahoo.com>,
      Ingo Kilian <ikilian@web.de>.
parent 6c37521f
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment