summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-11-11 08:59:57 +0000
committerDave Airlie <airlied@linux.ie>2005-11-11 08:59:57 +0000
commit36356df3cbca8e7e703afadf91046214d7755a07 (patch)
treea8b00d3d4a04f19c7693cc8a26438dc387170f3d
parentea07fefcbf6a07048bde6e25af6b891d51bd6f9e (diff)
A bunch of create_proc_dir_entry() calls creating directories had crept in
since the last sweep; converted to proc_mkdir(). From: Al Viro (via kernel)
-rw-r--r--linux-core/drm_drv.c2
-rw-r--r--linux-core/drm_proc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 1e711c08..b274da2c 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -433,7 +433,7 @@ static int __init drm_core_init(void)
goto err_p2;
}
- drm_proc_root = create_proc_entry("dri", S_IFDIR, NULL);
+ drm_proc_root = proc_mkdir("dri", NULL);
if (!drm_proc_root) {
DRM_ERROR("Cannot create /proc/dri\n");
ret = -1;
diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c
index 3e2b3ba0..8e9c4759 100644
--- a/linux-core/drm_proc.c
+++ b/linux-core/drm_proc.c
@@ -95,7 +95,7 @@ int drm_proc_init(drm_device_t * dev, int minor,
char name[64];
sprintf(name, "%d", minor);
- *dev_root = create_proc_entry(name, S_IFDIR, root);
+ *dev_root = proc_mkdir(name, root);
if (!*dev_root) {
DRM_ERROR("Cannot create /proc/dri/%s\n", name);
return -1;