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 /drivers/scsi/megaraid.c | |
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 'drivers/scsi/megaraid.c')
-rw-r--r-- | drivers/scsi/megaraid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index b135a1ed4b2c..18551aaf5e09 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -4996,7 +4996,7 @@ static int __init megaraid_init(void) | |||
4996 | max_mbox_busy_wait = MBOX_BUSY_WAIT; | 4996 | max_mbox_busy_wait = MBOX_BUSY_WAIT; |
4997 | 4997 | ||
4998 | #ifdef CONFIG_PROC_FS | 4998 | #ifdef CONFIG_PROC_FS |
4999 | mega_proc_dir_entry = proc_mkdir("megaraid", &proc_root); | 4999 | mega_proc_dir_entry = proc_mkdir("megaraid", NULL); |
5000 | if (!mega_proc_dir_entry) { | 5000 | if (!mega_proc_dir_entry) { |
5001 | printk(KERN_WARNING | 5001 | printk(KERN_WARNING |
5002 | "megaraid: failed to create megaraid root\n"); | 5002 | "megaraid: failed to create megaraid root\n"); |
@@ -5005,7 +5005,7 @@ static int __init megaraid_init(void) | |||
5005 | error = pci_register_driver(&megaraid_pci_driver); | 5005 | error = pci_register_driver(&megaraid_pci_driver); |
5006 | if (error) { | 5006 | if (error) { |
5007 | #ifdef CONFIG_PROC_FS | 5007 | #ifdef CONFIG_PROC_FS |
5008 | remove_proc_entry("megaraid", &proc_root); | 5008 | remove_proc_entry("megaraid", NULL); |
5009 | #endif | 5009 | #endif |
5010 | return error; | 5010 | return error; |
5011 | } | 5011 | } |
@@ -5035,7 +5035,7 @@ static void __exit megaraid_exit(void) | |||
5035 | pci_unregister_driver(&megaraid_pci_driver); | 5035 | pci_unregister_driver(&megaraid_pci_driver); |
5036 | 5036 | ||
5037 | #ifdef CONFIG_PROC_FS | 5037 | #ifdef CONFIG_PROC_FS |
5038 | remove_proc_entry("megaraid", &proc_root); | 5038 | remove_proc_entry("megaraid", NULL); |
5039 | #endif | 5039 | #endif |
5040 | } | 5040 | } |
5041 | 5041 | ||