diff options
author | Dave Airlie <airlied@redhat.com> | 2008-02-19 19:37:08 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-19 19:37:08 -0500 |
commit | 44a207fc66c13c82f627178f9f858b8f3e76028f (patch) | |
tree | 951816f531fdb673c779b85b43c7d887c8ec6594 /drivers/char/agp/amd-k7-agp.c | |
parent | 2e374748c73f34e018a1c13a86a96a15fc55a65a (diff) |
agp: fix missing casts that produced a warning.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/agp/amd-k7-agp.c')
-rw-r--r-- | drivers/char/agp/amd-k7-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c index fca4d7f30443..d28669992147 100644 --- a/drivers/char/agp/amd-k7-agp.c +++ b/drivers/char/agp/amd-k7-agp.c | |||
@@ -54,7 +54,7 @@ static int amd_create_page_map(struct amd_page_map *page_map) | |||
54 | } | 54 | } |
55 | global_cache_flush(); | 55 | global_cache_flush(); |
56 | #else | 56 | #else |
57 | set_memory_uc(page_map->real, 1); | 57 | set_memory_uc((unsigned long)page_map->real, 1); |
58 | page_map->remapped = page_map->real; | 58 | page_map->remapped = page_map->real; |
59 | #endif | 59 | #endif |
60 | 60 | ||
@@ -72,7 +72,7 @@ static void amd_free_page_map(struct amd_page_map *page_map) | |||
72 | iounmap(page_map->remapped); | 72 | iounmap(page_map->remapped); |
73 | ClearPageReserved(virt_to_page(page_map->real)); | 73 | ClearPageReserved(virt_to_page(page_map->real)); |
74 | #else | 74 | #else |
75 | set_memory_wb(page_map->real, 1); | 75 | set_memory_wb((unsigned long)page_map->real, 1); |
76 | #endif | 76 | #endif |
77 | free_page((unsigned long) page_map->real); | 77 | free_page((unsigned long) page_map->real); |
78 | } | 78 | } |