diff options
Diffstat (limited to 'drivers/char/drm/via_mm.c')
-rw-r--r-- | drivers/char/drm/via_mm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/via_mm.c b/drivers/char/drm/via_mm.c index 9d9237ef9448..d6c08e1d768f 100644 --- a/drivers/char/drm/via_mm.c +++ b/drivers/char/drm/via_mm.c | |||
@@ -116,8 +116,8 @@ void via_lastclose(struct drm_device *dev) | |||
116 | 116 | ||
117 | mutex_lock(&dev->struct_mutex); | 117 | mutex_lock(&dev->struct_mutex); |
118 | drm_sman_cleanup(&dev_priv->sman); | 118 | drm_sman_cleanup(&dev_priv->sman); |
119 | dev_priv->vram_initialized = FALSE; | 119 | dev_priv->vram_initialized = 0; |
120 | dev_priv->agp_initialized = FALSE; | 120 | dev_priv->agp_initialized = 0; |
121 | mutex_unlock(&dev->struct_mutex); | 121 | mutex_unlock(&dev->struct_mutex); |
122 | } | 122 | } |
123 | 123 | ||
@@ -139,7 +139,7 @@ int via_mem_alloc(DRM_IOCTL_ARGS) | |||
139 | return DRM_ERR(EINVAL); | 139 | return DRM_ERR(EINVAL); |
140 | } | 140 | } |
141 | mutex_lock(&dev->struct_mutex); | 141 | mutex_lock(&dev->struct_mutex); |
142 | if (FALSE == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized : | 142 | if (0 == ((mem.type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized : |
143 | dev_priv->agp_initialized)) { | 143 | dev_priv->agp_initialized)) { |
144 | DRM_ERROR | 144 | DRM_ERROR |
145 | ("Attempt to allocate from uninitialized memory manager.\n"); | 145 | ("Attempt to allocate from uninitialized memory manager.\n"); |