From: Al Viro Date: Sat, 30 Mar 2013 00:39:17 +0000 (-0400) Subject: dgrp procfs fixes, part 1 X-Git-Tag: upstream/snapshot3+hdmi~5227^2~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa66d7bba7c25ab2aefad9dad01c485b04dc4cbe;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 --- diff --git a/drivers/staging/dgrp/dgrp_specproc.c b/drivers/staging/dgrp/dgrp_specproc.c index dddf8a2..556cb31 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); }