diff options
Diffstat (limited to 'drivers/char/agp/sgi-agp.c')
| -rw-r--r-- | drivers/char/agp/sgi-agp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c index d3ea2e4226b5..0d426ae39c85 100644 --- a/drivers/char/agp/sgi-agp.c +++ b/drivers/char/agp/sgi-agp.c | |||
| @@ -70,10 +70,9 @@ static void sgi_tioca_tlbflush(struct agp_memory *mem) | |||
| 70 | * entry. | 70 | * entry. |
| 71 | */ | 71 | */ |
| 72 | static unsigned long | 72 | static unsigned long |
| 73 | sgi_tioca_mask_memory(struct agp_bridge_data *bridge, | 73 | sgi_tioca_mask_memory(struct agp_bridge_data *bridge, dma_addr_t addr, |
| 74 | struct page *page, int type) | 74 | int type) |
| 75 | { | 75 | { |
| 76 | unsigned long addr = phys_to_gart(page_to_phys(page)); | ||
| 77 | return tioca_physpage_to_gart(addr); | 76 | return tioca_physpage_to_gart(addr); |
| 78 | } | 77 | } |
| 79 | 78 | ||
| @@ -190,7 +189,8 @@ static int sgi_tioca_insert_memory(struct agp_memory *mem, off_t pg_start, | |||
| 190 | 189 | ||
| 191 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { | 190 | for (i = 0, j = pg_start; i < mem->page_count; i++, j++) { |
| 192 | table[j] = | 191 | table[j] = |
| 193 | bridge->driver->mask_memory(bridge, mem->pages[i], | 192 | bridge->driver->mask_memory(bridge, |
| 193 | page_to_phys(mem->pages[i]), | ||
| 194 | mem->type); | 194 | mem->type); |
| 195 | } | 195 | } |
| 196 | 196 | ||
