]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] 440GX AGP update
authorBjorn Helgaas <bjorn_helgaas@hp.com>
Mon, 6 Jan 2003 07:14:53 +0000 (23:14 -0800)
committerPaul Mackerras <paulus@samba.org>
Mon, 6 Jan 2003 07:14:53 +0000 (23:14 -0800)
I don't have a 440GX to test here, but I think the patch below is likely
to fix the problem.

I see some other issues in intel-agp.c.  I'll send those separately since
the diff is a little larger and should affect only i810 and i830.

drivers/char/agp/generic.c

index f45e9f2d5c41a0ff2d54ebf87828f489536c022c..835f241a04432b9a8d5350246d39fb3fec78da7d 100644 (file)
@@ -157,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
                        agp_free_memory(new);
                        return NULL;
                }
-               new->memory[i] = virt_to_phys((void *) new->memory[i]);
+               new->memory[i] = virt_to_phys(addr);
                new->page_count++;
        }