diff options
| author | Dave Jones <davej@redhat.com> | 2004-12-21 13:54:21 -0500 |
|---|---|---|
| committer | Dave Jones <davej@redhat.com> | 2004-12-21 13:54:21 -0500 |
| commit | 81529bbb448a4ecfc9ef7fdd294a9bba4a9cd6ec (patch) | |
| tree | d8091eb8a04bc4bbd32114c0b38a7e1b7b691a3a | |
| parent | 6025ca4cbd01fb660f998ed133d3aa05f076cb52 (diff) | |
[AGPGART] Fix up two stupid bugs in the posting fixes.
Spotted by MASAO TAKAHASHI
Signed-off-by: Dave Jones <davej@redhat.com>
| -rw-r--r-- | drivers/char/agp/intel-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 56950d715559..d9c7e60af166 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c @@ -140,7 +140,7 @@ static int intel_i810_configure(void) static void intel_i810_cleanup(void) { - writel(I810_PGETBL_CTL, intel_i810_private.registers); + writel(0, intel_i810_private.registers+I810_PGETBL_CTL); readl(intel_i810_private.registers); /* PCI Posting. */ iounmap(intel_i810_private.registers); } @@ -464,7 +464,7 @@ static int intel_i830_create_gatt_table(void) if (!intel_i830_private.registers) return -ENOMEM; - temp = readb(intel_i830_private.registers+I810_PGETBL_CTL) & 0xfffff000; + temp = readl(intel_i830_private.registers+I810_PGETBL_CTL) & 0xfffff000; global_cache_flush(); /* FIXME: ?? */ /* we have to call this as early as possible after the MMIO base address is known */ |
