aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/sis_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/sis_mm.c')
-rw-r--r--drivers/char/drm/sis_mm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/drm/sis_mm.c b/drivers/char/drm/sis_mm.c
index 3041c5b42d56..1b21e324d04e 100644
--- a/drivers/char/drm/sis_mm.c
+++ b/drivers/char/drm/sis_mm.c
@@ -111,7 +111,7 @@ static int sis_fb_init(DRM_IOCTL_ARGS)
111 return ret; 111 return ret;
112 } 112 }
113 113
114 dev_priv->vram_initialized = TRUE; 114 dev_priv->vram_initialized = 1;
115 dev_priv->vram_offset = fb.offset; 115 dev_priv->vram_offset = fb.offset;
116 116
117 mutex_unlock(&dev->struct_mutex); 117 mutex_unlock(&dev->struct_mutex);
@@ -133,7 +133,7 @@ static int sis_drm_alloc(drm_device_t * dev, drm_file_t * priv,
133 133
134 mutex_lock(&dev->struct_mutex); 134 mutex_lock(&dev->struct_mutex);
135 135
136 if (FALSE == ((pool == 0) ? dev_priv->vram_initialized : 136 if (0 == ((pool == 0) ? dev_priv->vram_initialized :
137 dev_priv->agp_initialized)) { 137 dev_priv->agp_initialized)) {
138 DRM_ERROR 138 DRM_ERROR
139 ("Attempt to allocate from uninitialized memory manager.\n"); 139 ("Attempt to allocate from uninitialized memory manager.\n");
@@ -211,7 +211,7 @@ static int sis_ioctl_agp_init(DRM_IOCTL_ARGS)
211 return ret; 211 return ret;
212 } 212 }
213 213
214 dev_priv->agp_initialized = TRUE; 214 dev_priv->agp_initialized = 1;
215 dev_priv->agp_offset = agp.offset; 215 dev_priv->agp_offset = agp.offset;
216 mutex_unlock(&dev->struct_mutex); 216 mutex_unlock(&dev->struct_mutex);
217 217
@@ -284,7 +284,7 @@ int sis_idle(drm_device_t *dev)
284 if (time_after_eq(jiffies, end)) { 284 if (time_after_eq(jiffies, end)) {
285 DRM_ERROR("Graphics engine idle timeout. " 285 DRM_ERROR("Graphics engine idle timeout. "
286 "Disabling idle check\n"); 286 "Disabling idle check\n");
287 dev_priv->idle_fault = TRUE; 287 dev_priv->idle_fault = 1;
288 } 288 }
289 289
290 /* 290 /*
@@ -305,8 +305,8 @@ void sis_lastclose(struct drm_device *dev)
305 305
306 mutex_lock(&dev->struct_mutex); 306 mutex_lock(&dev->struct_mutex);
307 drm_sman_cleanup(&dev_priv->sman); 307 drm_sman_cleanup(&dev_priv->sman);
308 dev_priv->vram_initialized = FALSE; 308 dev_priv->vram_initialized = 0;
309 dev_priv->agp_initialized = FALSE; 309 dev_priv->agp_initialized = 0;
310 dev_priv->mmio = NULL; 310 dev_priv->mmio = NULL;
311 mutex_unlock(&dev->struct_mutex); 311 mutex_unlock(&dev->struct_mutex);
312} 312}