patch-2.3.30 linux/drivers/usb/proc_usb.c
Next file: linux/drivers/video/Config.in
Previous file: linux/drivers/usb/ohci-root-hub.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Sun Dec 5 08:42:03 1999
- Orig file:
v2.3.29/linux/drivers/usb/proc_usb.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.29/linux/drivers/usb/proc_usb.c linux/drivers/usb/proc_usb.c
@@ -949,25 +949,6 @@
static struct inode_operations proc_usb_device_inode_operations = {
&proc_usb_device_file_operations, /* file-ops */
- NULL, /* create */
- NULL, /* lookup */
- NULL, /* link */
- NULL, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- NULL, /* rename */
- NULL, /* readlink */
- NULL, /* follow_link */
- NULL, /* get_block */
- NULL, /* readpage */
- NULL, /* writepage */
- NULL, /* flushpage */
- NULL, /* truncate */
- NULL, /* permission */
- NULL, /* smap */
- NULL /* revalidate */
};
void proc_usb_add_bus(struct usb_bus *bus)
@@ -978,7 +959,7 @@
if (!usbdir)
return;
sprintf(buf, "%03d", bus->busnum);
- if (!(bus->proc_entry = create_proc_entry(buf, S_IFDIR, usbdir)))
+ if (!(bus->proc_entry = proc_mkdir(buf, usbdir)))
return;
bus->proc_entry->data = bus;
}
@@ -1024,7 +1005,7 @@
int proc_usb_init (void)
{
- usbdir = create_proc_entry ("usb", S_IFDIR, proc_bus);
+ usbdir = proc_mkdir ("usb", proc_bus);
if (!usbdir) {
printk ("proc_usb: cannot create /proc/bus/usb entry\n");
return -1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)