Commit 81529bbb authored by Dave Jones's avatar Dave Jones

[AGPGART] Fix up two stupid bugs in the posting fixes.

Spotted by MASAO TAKAHASHI
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 6025ca4c
......@@ -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 */
......
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