]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[AGPGART] Fix up warning in efficeon driver.
authorDave Jones <davej@redhat.com>
Sun, 6 Nov 2005 04:32:26 +0000 (20:32 -0800)
committerDave Jones <davej@redhat.com>
Sun, 6 Nov 2005 04:32:26 +0000 (20:32 -0800)
efficeon-agp.c:222: warning: passing arg 1 of `virt_to_phys' makes pointer from integer without a cast

Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/efficeon-agp.c

index b64028abc1ff42315593bd8c34095fe0dc5d7b07..d41e0a62e32efe77017abf86570d2f4147b75e7b 100644 (file)
@@ -219,7 +219,7 @@ static int efficeon_create_gatt_table(struct agp_bridge_data *bridge)
 
                efficeon_private.l1_table[index] = page;
 
-               value = virt_to_gart(page) | pati | present | index;
+               value = virt_to_gart((unsigned long *)page) | pati | present | index;
 
                pci_write_config_dword(agp_bridge->dev,
                        EFFICEON_ATTPAGE, value);