aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/ati-agp.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-02-19 19:37:08 -0500
committerDave Airlie <airlied@redhat.com>2008-02-19 19:37:08 -0500
commit44a207fc66c13c82f627178f9f858b8f3e76028f (patch)
tree951816f531fdb673c779b85b43c7d887c8ec6594 /drivers/char/agp/ati-agp.c
parent2e374748c73f34e018a1c13a86a96a15fc55a65a (diff)
agp: fix missing casts that produced a warning.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/agp/ati-agp.c')
-rw-r--r--drivers/char/agp/ati-agp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c
index 9ac3bef3bb7a..55c97f623242 100644
--- a/drivers/char/agp/ati-agp.c
+++ b/drivers/char/agp/ati-agp.c
@@ -60,7 +60,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
60 if (page_map->real == NULL) 60 if (page_map->real == NULL)
61 return -ENOMEM; 61 return -ENOMEM;
62 62
63 set_memory_uc(page_map->real, 1); 63 set_memory_uc((unsigned long)page_map->real, 1);
64 err = map_page_into_agp(virt_to_page(page_map->real)); 64 err = map_page_into_agp(virt_to_page(page_map->real));
65 page_map->remapped = page_map->real; 65 page_map->remapped = page_map->real;
66 66
@@ -76,7 +76,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
76static void ati_free_page_map(struct ati_page_map *page_map) 76static void ati_free_page_map(struct ati_page_map *page_map)
77{ 77{
78 unmap_page_from_agp(virt_to_page(page_map->real)); 78 unmap_page_from_agp(virt_to_page(page_map->real));
79 set_memory_wb(page_map->real, 1); 79 set_memory_wb((unsigned long)page_map->real, 1);
80 free_page((unsigned long) page_map->real); 80 free_page((unsigned long) page_map->real);
81} 81}
82 82