mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
928b4d8c89
commit
c74c120a21
22 changed files with 34 additions and 38 deletions
|
|
@ -4996,7 +4996,7 @@ static int __init megaraid_init(void)
|
|||
max_mbox_busy_wait = MBOX_BUSY_WAIT;
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
mega_proc_dir_entry = proc_mkdir("megaraid", &proc_root);
|
||||
mega_proc_dir_entry = proc_mkdir("megaraid", NULL);
|
||||
if (!mega_proc_dir_entry) {
|
||||
printk(KERN_WARNING
|
||||
"megaraid: failed to create megaraid root\n");
|
||||
|
|
@ -5005,7 +5005,7 @@ static int __init megaraid_init(void)
|
|||
error = pci_register_driver(&megaraid_pci_driver);
|
||||
if (error) {
|
||||
#ifdef CONFIG_PROC_FS
|
||||
remove_proc_entry("megaraid", &proc_root);
|
||||
remove_proc_entry("megaraid", NULL);
|
||||
#endif
|
||||
return error;
|
||||
}
|
||||
|
|
@ -5035,7 +5035,7 @@ static void __exit megaraid_exit(void)
|
|||
pci_unregister_driver(&megaraid_pci_driver);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
remove_proc_entry("megaraid", &proc_root);
|
||||
remove_proc_entry("megaraid", NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue