summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgrp
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-29 20:39:17 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:13:07 -0400
commitaa66d7bba7c25ab2aefad9dad01c485b04dc4cbe (patch)
tree1ed0c00fd005bcf99c738b7a9456d77649a957e7 /drivers/staging/dgrp
parentf56e2947be4585fd35627b4b778c582ca7fb5b03 (diff)
dgrp procfs fixes, part 1
proc_create() has shat upon fops argument when mode is S_IFDIR. Good thing, too, since fops passed to it is completely useless for any directory. Just use proc_mkdir(), damnit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/dgrp')
-rw-r--r--drivers/staging/dgrp/dgrp_specproc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/dgrp/dgrp_specproc.c b/drivers/staging/dgrp/dgrp_specproc.c
index dddf8a2e396..556cb3124da 100644
--- a/drivers/staging/dgrp/dgrp_specproc.c
+++ b/drivers/staging/dgrp/dgrp_specproc.c
@@ -201,8 +201,7 @@ void dgrp_register_proc(void)
/*
* Register /proc/dgrp
*/
- dgrp_proc_dir_entry = proc_create("dgrp", S_IFDIR, NULL,
- &dgrp_proc_file_ops);
+ dgrp_proc_dir_entry = proc_mkdir("dgrp", NULL);
register_proc_table(dgrp_table, dgrp_proc_dir_entry);
}