diff options
Diffstat (limited to 'drivers/char/agp/sworks-agp.c')
-rw-r--r-- | drivers/char/agp/sworks-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c index ae06f8982068..e08934e58f32 100644 --- a/drivers/char/agp/sworks-agp.c +++ b/drivers/char/agp/sworks-agp.c | |||
@@ -53,7 +53,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map) | |||
53 | return -ENOMEM; | 53 | return -ENOMEM; |
54 | } | 54 | } |
55 | 55 | ||
56 | set_memory_uc(page_map->real, 1); | 56 | set_memory_uc((unsigned long)page_map->real, 1); |
57 | page_map->remapped = page_map->real; | 57 | page_map->remapped = page_map->real; |
58 | 58 | ||
59 | for (i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++) | 59 | for (i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++) |
@@ -65,7 +65,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map) | |||
65 | 65 | ||
66 | static void serverworks_free_page_map(struct serverworks_page_map *page_map) | 66 | static void serverworks_free_page_map(struct serverworks_page_map *page_map) |
67 | { | 67 | { |
68 | set_memory_wb(page_map->real, 1); | 68 | set_memory_wb((unsigned long)page_map->real, 1); |
69 | free_page((unsigned long) page_map->real); | 69 | free_page((unsigned long) page_map->real); |
70 | } | 70 | } |
71 | 71 | ||