Commit 487cb474 authored by James Simmons's avatar James Simmons

Merge maxwell.earthlink.net:/usr/src/linus-2.5

into maxwell.earthlink.net:/usr/src/fbdev-2.5
parents ede590e3 ae4d9837
...@@ -157,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type) ...@@ -157,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
agp_free_memory(new); agp_free_memory(new);
return NULL; return NULL;
} }
new->memory[i] = virt_to_phys((void *) new->memory[i]); new->memory[i] = virt_to_phys(addr);
new->page_count++; new->page_count++;
} }
......
...@@ -220,11 +220,11 @@ static agp_memory *intel_i810_alloc_by_type(size_t pg_count, int type) ...@@ -220,11 +220,11 @@ static agp_memory *intel_i810_alloc_by_type(size_t pg_count, int type)
agp_free_memory(new); agp_free_memory(new);
return NULL; return NULL;
} }
new->memory[0] = virt_to_phys((void *) new->memory[0]); new->memory[0] = virt_to_phys(addr);
new->page_count = 1; new->page_count = 1;
new->num_scratch_pages = 1; new->num_scratch_pages = 1;
new->type = AGP_PHYS_MEMORY; new->type = AGP_PHYS_MEMORY;
new->physical = virt_to_phys((void *) new->memory[0]); new->physical = new->memory[0];
return new; return new;
} }
return NULL; return NULL;
...@@ -515,11 +515,11 @@ static agp_memory *intel_i830_alloc_by_type(size_t pg_count,int type) ...@@ -515,11 +515,11 @@ static agp_memory *intel_i830_alloc_by_type(size_t pg_count,int type)
return(NULL); return(NULL);
} }
nw->memory[0] = virt_to_phys((void *) nw->memory[0]); nw->memory[0] = virt_to_phys(addr);
nw->page_count = 1; nw->page_count = 1;
nw->num_scratch_pages = 1; nw->num_scratch_pages = 1;
nw->type = AGP_PHYS_MEMORY; nw->type = AGP_PHYS_MEMORY;
nw->physical = virt_to_phys(addr); nw->physical = nw->memory[0];
return(nw); return(nw);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment