aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/agp/amd-k7-agp.c4
-rw-r--r--drivers/char/agp/ati-agp.c4
-rw-r--r--drivers/char/agp/sworks-agp.c4
3 files changed, 6 insertions, 6 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}
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
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
66static void serverworks_free_page_map(struct serverworks_page_map *page_map) 66static 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