proc: remove proc_bus
Remove proc_bus export and variable itself. Using pathnames works fine and is slightly more understandable and greppable. 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>
This commit is contained in:
committed by
Linus Torvalds
parent
5e971dce0b
commit
9c37066d88
@@ -898,7 +898,7 @@ static int __init input_proc_init(void)
|
||||
{
|
||||
struct proc_dir_entry *entry;
|
||||
|
||||
proc_bus_input_dir = proc_mkdir("input", proc_bus);
|
||||
proc_bus_input_dir = proc_mkdir("bus/input", NULL);
|
||||
if (!proc_bus_input_dir)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -921,7 +921,7 @@ static int __init input_proc_init(void)
|
||||
return 0;
|
||||
|
||||
fail2: remove_proc_entry("devices", proc_bus_input_dir);
|
||||
fail1: remove_proc_entry("input", proc_bus);
|
||||
fail1: remove_proc_entry("bus/input", NULL);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -929,7 +929,7 @@ static void input_proc_exit(void)
|
||||
{
|
||||
remove_proc_entry("devices", proc_bus_input_dir);
|
||||
remove_proc_entry("handlers", proc_bus_input_dir);
|
||||
remove_proc_entry("input", proc_bus);
|
||||
remove_proc_entry("bus/input", NULL);
|
||||
}
|
||||
|
||||
#else /* !CONFIG_PROC_FS */
|
||||
|
Reference in New Issue
Block a user