summaryrefslogtreecommitdiff
path: root/linux/drm_fops.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drm_fops.h')
-rw-r--r--linux/drm_fops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drm_fops.h b/linux/drm_fops.h
index 21935b7a..32c6177c 100644
--- a/linux/drm_fops.h
+++ b/linux/drm_fops.h
@@ -60,7 +60,7 @@ int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev)
DRM_DEBUG("pid = %d, minor = %d\n", current->pid, minor);
- priv = DRM(alloc)(sizeof(*priv), DRM_MEM_FILES);
+ priv = drm_core_alloc(sizeof(*priv), DRM_MEM_FILES);
if(!priv) return -ENOMEM;
memset(priv, 0, sizeof(*priv));
@@ -111,7 +111,7 @@ int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev)
return 0;
out_free:
- DRM(free)(priv, sizeof(*priv), DRM_MEM_FILES);
+ drm_core_free(priv, sizeof(*priv), DRM_MEM_FILES);
return ret;
}