summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/inode.c
diff options
context:
space:
mode:
authorAlexey Dobriyan2008-04-29 10:01:41 +0200
committerLinus Torvalds2008-04-29 17:06:18 +0200
commit9c37066d888bf6e1b96ad12304971b3ddeabbad0 (patch)
tree87f39924be4d36b25918cf7a90eb0db7743cba99 /drivers/usb/core/inode.c
parentproc: drop several "PDE valid/invalid" checks (diff)
downloadkernel-qcow2-linux-9c37066d888bf6e1b96ad12304971b3ddeabbad0.tar.gz
kernel-qcow2-linux-9c37066d888bf6e1b96ad12304971b3ddeabbad0.tar.xz
kernel-qcow2-linux-9c37066d888bf6e1b96ad12304971b3ddeabbad0.zip
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>
Diffstat (limited to 'drivers/usb/core/inode.c')
-rw-r--r--drivers/usb/core/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index 8607846e3c3f..1d253dd4ea81 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -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);
}