diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_kms.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_kms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 64f42b19cbf..4612a7c146d 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c | |||
@@ -169,7 +169,7 @@ int radeon_master_create_kms(struct drm_device *dev, struct drm_master *master) | |||
169 | unsigned long sareapage; | 169 | unsigned long sareapage; |
170 | int ret; | 170 | int ret; |
171 | 171 | ||
172 | master_priv = drm_calloc(1, sizeof(*master_priv), DRM_MEM_DRIVER); | 172 | master_priv = kzalloc(sizeof(*master_priv), GFP_KERNEL); |
173 | if (master_priv == NULL) { | 173 | if (master_priv == NULL) { |
174 | return -ENOMEM; | 174 | return -ENOMEM; |
175 | } | 175 | } |
@@ -199,7 +199,7 @@ void radeon_master_destroy_kms(struct drm_device *dev, | |||
199 | if (master_priv->sarea) { | 199 | if (master_priv->sarea) { |
200 | drm_rmmap_locked(dev, master_priv->sarea); | 200 | drm_rmmap_locked(dev, master_priv->sarea); |
201 | } | 201 | } |
202 | drm_free(master_priv, sizeof(*master_priv), DRM_MEM_DRIVER); | 202 | kfree(master_priv); |
203 | master->driver_priv = NULL; | 203 | master->driver_priv = NULL; |
204 | } | 204 | } |
205 | 205 | ||