From: Alexey Dobriyan Remove proc_root export. Creation and removal works well if parent PDE is supplied as NULL -- it worked always that way. So, one useless export removed and consistency added, some drivers created PDEs with &proc_root as parent but removed them as NULL and so on. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton --- lib/likely_prof.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN lib/likely_prof.c~proc-remove-proc_root-from-drivers-likelyprof lib/likely_prof.c --- a/lib/likely_prof.c~proc-remove-proc_root-from-drivers-likelyprof +++ a/lib/likely_prof.c @@ -142,8 +142,7 @@ static struct file_operations proc_likel static int __init init_likely(void) { struct proc_dir_entry *entry = - proc_create("likely_prof", 0, &proc_root, - &proc_likely_operations); + proc_create("likely_prof", 0, NULL, &proc_likely_operations); if (!entry) return 1; _