Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[linux-2.6.git] / drivers / char / agp / uninorth-agp.c
index bba29abe917f96293f7aaec46e243988b8e7bef5..20ef1bf5e726070103e70beb9b71be5424c42dcd 100644 (file)
@@ -138,7 +138,7 @@ static int uninorth_configure(void)
        if (is_u3) {
                pci_write_config_dword(agp_bridge->dev,
                                       UNI_N_CFG_GART_DUMMY_PAGE,
-                                      agp_bridge->scratch_page_real >> 12);
+                                      page_to_phys(agp_bridge->scratch_page_page) >> 12);
        }
 
        return 0;
@@ -445,7 +445,7 @@ static int uninorth_create_gatt_table(struct agp_bridge_data *bridge)
        if (bridge->gatt_table == NULL)
                goto enomem;
 
-       bridge->gatt_bus_addr = virt_to_gart(table);
+       bridge->gatt_bus_addr = virt_to_phys(table);
 
        for (i = 0; i < num_entries; i++)
                bridge->gatt_table[i] = 0;