Commit 595b14cb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: remove some left over devfs droppings hanging around in the usb drivers

As there is no more usb devfs support, these bits would just confuse
people.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 630aa3cf
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <linux/usb.h> #include <linux/usb.h>
#include "hid.h" #include "hid.h"
#include <linux/hiddev.h> #include <linux/hiddev.h>
#include <linux/devfs_fs_kernel.h>
#ifdef CONFIG_USB_DYNAMIC_MINORS #ifdef CONFIG_USB_DYNAMIC_MINORS
#define HIDDEV_MINOR_BASE 0 #define HIDDEV_MINOR_BASE 0
...@@ -832,12 +831,10 @@ static /* const */ struct usb_driver hiddev_driver = { ...@@ -832,12 +831,10 @@ static /* const */ struct usb_driver hiddev_driver = {
int __init hiddev_init(void) int __init hiddev_init(void)
{ {
devfs_mk_dir("usb/hid");
return usb_register(&hiddev_driver); return usb_register(&hiddev_driver);
} }
void hiddev_exit(void) void hiddev_exit(void)
{ {
usb_deregister(&hiddev_driver); usb_deregister(&hiddev_driver);
devfs_remove("usb/hid");
} }
...@@ -593,7 +593,7 @@ static struct file_operations ld_usb_fops = { ...@@ -593,7 +593,7 @@ static struct file_operations ld_usb_fops = {
/* /*
* usb class driver info in order to get a minor number from the usb core, * usb class driver info in order to get a minor number from the usb core,
* and to have the device registered with devfs and the driver core * and to have the device registered with the driver core
*/ */
static struct usb_class_driver ld_usb_class = { static struct usb_class_driver ld_usb_class = {
.name = "ldusb%d", .name = "ldusb%d",
......
...@@ -234,7 +234,7 @@ static struct file_operations skel_fops = { ...@@ -234,7 +234,7 @@ static struct file_operations skel_fops = {
/* /*
* usb class driver info in order to get a minor number from the usb core, * usb class driver info in order to get a minor number from the usb core,
* and to have the device registered with devfs and the driver core * and to have the device registered with the driver core
*/ */
static struct usb_class_driver skel_class = { static struct usb_class_driver skel_class = {
.name = "skel%d", .name = "skel%d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment