diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-04-29 04:01:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:18 -0400 |
commit | c74c120a21d87b0b6925ada5830d8cac21e852d9 (patch) | |
tree | 79558a29ecadc7b71eeb5bdf0945680f0560b2ed /sound/core | |
parent | 928b4d8c8963e75bdb133f562b03b07f9aa4844a (diff) |
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.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 9977ec2eace3..cb5ead3e202d 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -544,7 +544,7 @@ int __init snd_info_init(void) | |||
544 | { | 544 | { |
545 | struct proc_dir_entry *p; | 545 | struct proc_dir_entry *p; |
546 | 546 | ||
547 | p = snd_create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, &proc_root); | 547 | p = snd_create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, NULL); |
548 | if (p == NULL) | 548 | if (p == NULL) |
549 | return -ENOMEM; | 549 | return -ENOMEM; |
550 | snd_proc_root = p; | 550 | snd_proc_root = p; |
@@ -594,7 +594,7 @@ int __exit snd_info_done(void) | |||
594 | #ifdef CONFIG_SND_OSSEMUL | 594 | #ifdef CONFIG_SND_OSSEMUL |
595 | snd_info_free_entry(snd_oss_root); | 595 | snd_info_free_entry(snd_oss_root); |
596 | #endif | 596 | #endif |
597 | snd_remove_proc_entry(&proc_root, snd_proc_root); | 597 | snd_remove_proc_entry(NULL, snd_proc_root); |
598 | } | 598 | } |
599 | return 0; | 599 | return 0; |
600 | } | 600 | } |