patch-2.3.40 linux/drivers/usb/inode.c
Next file: linux/drivers/usb/joydev.c
Previous file: linux/drivers/usb/hub.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Thu Jan 20 15:00:16 2000
- Orig file:
v2.3.39/linux/drivers/usb/inode.c
- Orig date:
Tue Jan 11 22:31:41 2000
diff -u --recursive --new-file v2.3.39/linux/drivers/usb/inode.c linux/drivers/usb/inode.c
@@ -20,10 +20,10 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
+ * $Id: inode.c,v 1.3 2000/01/11 13:58:25 tom Exp $
+ *
* History:
* 0.1 04.01.2000 Created
- *
- * $Id: ezusb.c,v 1.22 1999/12/03 15:06:28 tom Exp $
*/
/*****************************************************************************/
@@ -34,6 +34,7 @@
#include <linux/smp_lock.h>
#include <linux/locks.h>
#include <linux/init.h>
+#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include "usb.h"
@@ -696,6 +697,8 @@
/* --------------------------------------------------------------------- */
+static struct proc_dir_entry *usbdir = NULL;
+
int __init usbdevfs_init(void)
{
int ret;
@@ -707,6 +710,8 @@
return ret;
if ((ret = register_filesystem(&usbdevice_fs_type)))
usb_deregister(&usbdevfs_driver);
+ /* create mount point for usbdevfs */
+ usbdir = proc_mkdir("usb", proc_bus);
return ret;
}
@@ -714,6 +719,8 @@
{
usb_deregister(&usbdevfs_driver);
unregister_filesystem(&usbdevice_fs_type);
+ if (usbdir)
+ remove_proc_entry("usb", proc_bus);
}
#if 0
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)