patch-2.4.19 linux-2.4.19/drivers/usb/inode.c
Next file: linux-2.4.19/drivers/usb/kaweth.c
Previous file: linux-2.4.19/drivers/usb/ibmcam.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/drivers/usb/inode.c
- Orig date:
Sat Oct 20 19:13:11 2001
diff -urN linux-2.4.18/drivers/usb/inode.c linux-2.4.19/drivers/usb/inode.c
@@ -654,7 +654,13 @@
return NULL;
}
+/*
+ * The usbdevfs name is now deprecated (as of 2.4.19).
+ * It will be removed when the 2.7.x development cycle is started.
+ * You have been warned :)
+ */
static DECLARE_FSTYPE(usbdevice_fs_type, "usbdevfs", usbdevfs_read_super, FS_SINGLE);
+static DECLARE_FSTYPE(usbfs_type, "usbfs", usbdevfs_read_super, FS_SINGLE);
/* --------------------------------------------------------------------- */
@@ -751,6 +757,11 @@
usb_deregister(&usbdevfs_driver);
return ret;
}
+ if ((ret = register_filesystem(&usbfs_type))) {
+ usb_deregister(&usbdevfs_driver);
+ unregister_filesystem(&usbdevice_fs_type);
+ return ret;
+ }
#ifdef CONFIG_PROC_FS
/* create mount point for usbdevfs */
usbdir = proc_mkdir("usb", proc_bus);
@@ -762,6 +773,7 @@
{
usb_deregister(&usbdevfs_driver);
unregister_filesystem(&usbdevice_fs_type);
+ unregister_filesystem(&usbfs_type);
#ifdef CONFIG_PROC_FS
if (usbdir)
remove_proc_entry("usb", proc_bus);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)