diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-29 05:25:58 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-08-03 04:05:00 -0400 |
commit | 6a12235c7d2d75c7d94b9afcaaecd422ff845ce0 (patch) | |
tree | 416ec7de6c42fa5dd7885b53388a1bbee0b3aeed /drivers/char/agp/efficeon-agp.c | |
parent | f692775d7e0a22477143cd884e45c955448ac7d2 (diff) |
agp: kill phys_to_gart() and gart_to_phys()
There seems to be no reason for these -- they're a 1:1 mapping on all
platforms.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/char/agp/efficeon-agp.c')
-rw-r--r-- | drivers/char/agp/efficeon-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index 35d50f2861b6..793f39ea9618 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c | |||
@@ -67,7 +67,7 @@ static const struct gatt_mask efficeon_generic_masks[] = | |||
67 | /* This function does the same thing as mask_memory() for this chipset... */ | 67 | /* This function does the same thing as mask_memory() for this chipset... */ |
68 | static inline unsigned long efficeon_mask_memory(struct page *page) | 68 | static inline unsigned long efficeon_mask_memory(struct page *page) |
69 | { | 69 | { |
70 | unsigned long addr = phys_to_gart(page_to_phys(page)); | 70 | unsigned long addr = page_to_phys(page); |
71 | return addr | 0x00000001; | 71 | return addr | 0x00000001; |
72 | } | 72 | } |
73 | 73 | ||
@@ -226,7 +226,7 @@ static int efficeon_create_gatt_table(struct agp_bridge_data *bridge) | |||
226 | 226 | ||
227 | efficeon_private.l1_table[index] = page; | 227 | efficeon_private.l1_table[index] = page; |
228 | 228 | ||
229 | value = virt_to_gart((unsigned long *)page) | pati | present | index; | 229 | value = virt_to_phys((unsigned long *)page) | pati | present | index; |
230 | 230 | ||
231 | pci_write_config_dword(agp_bridge->dev, | 231 | pci_write_config_dword(agp_bridge->dev, |
232 | EFFICEON_ATTPAGE, value); | 232 | EFFICEON_ATTPAGE, value); |