# HG changeset patch # User tiwai # Date 1209723754 -7200 # Node ID dd67eb84e184637d758b5f617e8e0a8888e2d26d # Parent 56b61dbd8a20ba15c527910dfd42fc40f5ea8cab proc: remove proc_root from drivers 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. Patch-level: Merged Signed-off-by: Alexey Dobriyan --- a/core/info.c Fri May 02 12:15:02 2008 +0200 +++ b/core/info.c Fri May 02 12:22:34 2008 +0200 @@ -544,7 +544,7 @@ int __init snd_info_init(void) { struct proc_dir_entry *p; - p = snd_create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, &proc_root); + p = snd_create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, NULL); if (p == NULL) return -ENOMEM; snd_proc_root = p; @@ -594,7 +594,7 @@ int __exit snd_info_done(void) #ifdef CONFIG_SND_OSSEMUL snd_info_free_entry(snd_oss_root); #endif - snd_remove_proc_entry(&proc_root, snd_proc_root); + snd_remove_proc_entry(NULL, snd_proc_root); } return 0; }