agp: fix missing casts that produced a warning.
Signed-off-by: Dave Airlie <airlied@redhat.com>
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c
index ae06f89..e08934e 100644
--- a/drivers/char/agp/sworks-agp.c
+++ b/drivers/char/agp/sworks-agp.c
@@ -53,7 +53,7 @@
return -ENOMEM;
}
- set_memory_uc(page_map->real, 1);
+ set_memory_uc((unsigned long)page_map->real, 1);
page_map->remapped = page_map->real;
for (i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++)
@@ -65,7 +65,7 @@
static void serverworks_free_page_map(struct serverworks_page_map *page_map)
{
- set_memory_wb(page_map->real, 1);
+ set_memory_wb((unsigned long)page_map->real, 1);
free_page((unsigned long) page_map->real);
}