aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/drm/ati_pcigart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c
index 5485382cadec..7d2a885b5db0 100644
--- a/drivers/char/drm/ati_pcigart.c
+++ b/drivers/char/drm/ati_pcigart.c
@@ -61,7 +61,7 @@ static void *drm_ati_alloc_pcigart_table(void)
61 61
62 address = __get_free_pages(GFP_KERNEL, ATI_PCIGART_TABLE_ORDER); 62 address = __get_free_pages(GFP_KERNEL, ATI_PCIGART_TABLE_ORDER);
63 if (address == 0UL) { 63 if (address == 0UL) {
64 return 0; 64 return NULL;
65 } 65 }
66 66
67 page = virt_to_page(address); 67 page = virt_to_page(address);
@@ -127,7 +127,7 @@ int drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
127 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN 127 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN
128 && gart_info->addr) { 128 && gart_info->addr) {
129 drm_ati_free_pcigart_table(gart_info->addr); 129 drm_ati_free_pcigart_table(gart_info->addr);
130 gart_info->addr = 0; 130 gart_info->addr = NULL;
131 } 131 }
132 132
133 return 1; 133 return 1;
@@ -168,7 +168,7 @@ int drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info)
168 if (bus_address == 0) { 168 if (bus_address == 0) {
169 DRM_ERROR("unable to map PCIGART pages!\n"); 169 DRM_ERROR("unable to map PCIGART pages!\n");
170 drm_ati_free_pcigart_table(address); 170 drm_ati_free_pcigart_table(address);
171 address = 0; 171 address = NULL;
172 goto done; 172 goto done;
173 } 173 }
174 } else { 174 } else {