Skip to contentSkip to conversation

USB: remove CONFIG_USB_DEVICE_CLASS

RFC PATCH New Greg Kroah-Hartman 1 participant 1 message Apr 25, 2012 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

RFC PATCH 1/1 USB: remove CONFIG_USB_DEVICE_CLASS

This option has been deprecated for many years now, and no userspace tools use it anymore, so it should be safe to finally remove it.

---

Anyone object to me queuing this up for the 3.5 kernel release?

 drivers/usb/core/Kconfig |   23 ----------------------
 drivers/usb/core/devio.c |   49 ----------------------------------------------
 include/linux/usb.h      |    3 ---
 3 files changed, 75 deletions(-)
drivers/usb/core/Kconfig +0 -23
index 18d02e3..df70b24 100644
@@ -56,29 +56,6 @@ config USB_DEVICEFS
 	  The usbfs functionality is replaced by real device-nodes managed by
 	  udev.  These nodes lived in /dev/bus/usb and are used by libusb.
 
-config USB_DEVICE_CLASS
-	bool "USB device class-devices (DEPRECATED)"
-	depends on USB
-	default y
-	---help---
-	  Userspace access to USB devices is granted by device-nodes exported
-	  directly from the usbdev in sysfs. Old versions of the driver
-	  core and udev needed additional class devices to export device nodes.
-
-	  These additional devices are difficult to handle in userspace, if
-	  information about USB interfaces must be available. One device
-	  contains the device node, the other device contains the interface
-	  data. Both devices are at the same level in sysfs (siblings) and one
-	  can't access the other. The device node created directly by the
-	  usb device is the parent device of the interface and therefore
-	  easily accessible from the interface event.
-
-	  This option provides backward compatibility for libusb device
-	  nodes (lsusb) when usbfs is not used, and the following udev rule
-	  doesn't exist:
-	    SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \
-	    NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
-
 config USB_DYNAMIC_MINORS
 	bool "Dynamic USB minor allocation"
 	depends on USB
drivers/usb/core/devio.c +0 -49

74 lines not on this page · raw message

include/linux/usb.h +0 -3
index 45bc7a5..6d616ce 100644
@@ -493,9 +493,6 @@ struct usb_device {
 	char *serial;
 
 	struct list_head filelist;
-#ifdef CONFIG_USB_DEVICE_CLASS
-	struct device *usb_classdev;
-#endif
 #ifdef CONFIG_USB_DEVICEFS
 	struct dentry *usbfs_dentry;
 #endif