mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5e971dce0b
commit
9c37066d88
10 changed files with 14 additions and 17 deletions
|
|
@ -773,7 +773,7 @@ int __init usbfs_init(void)
|
|||
usb_register_notify(&usbfs_nb);
|
||||
|
||||
/* create mount point for usbfs */
|
||||
usbdir = proc_mkdir("usb", proc_bus);
|
||||
usbdir = proc_mkdir("bus/usb", NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -783,6 +783,6 @@ void usbfs_cleanup(void)
|
|||
usb_unregister_notify(&usbfs_nb);
|
||||
unregister_filesystem(&usb_fs_type);
|
||||
if (usbdir)
|
||||
remove_proc_entry("usb", proc_bus);
|
||||
remove_proc_entry("bus/usb", NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue