diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-25 20:15:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-29 22:20:03 -0400 |
commit | fb28d58b72aa9215b26f1d5478462af394a4d253 (patch) | |
tree | 5452680dca9eab10d59d276e6b3cc53fab7a19a7 /drivers/usb/core/devio.c | |
parent | 70f3c7586c708bce8f525246c8b27322edc00cc7 (diff) |
USB: remove CONFIG_USB_DEVICEFS
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.
Reported-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 8df4b76465ac..90db6e2a573f 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -727,17 +727,6 @@ static int usbdev_open(struct inode *inode, struct file *file) | |||
727 | if (imajor(inode) == USB_DEVICE_MAJOR) | 727 | if (imajor(inode) == USB_DEVICE_MAJOR) |
728 | dev = usbdev_lookup_by_devt(inode->i_rdev); | 728 | dev = usbdev_lookup_by_devt(inode->i_rdev); |
729 | 729 | ||
730 | #ifdef CONFIG_USB_DEVICEFS | ||
731 | /* procfs file */ | ||
732 | if (!dev) { | ||
733 | dev = inode->i_private; | ||
734 | if (dev && dev->usbfs_dentry && | ||
735 | dev->usbfs_dentry->d_inode == inode) | ||
736 | usb_get_dev(dev); | ||
737 | else | ||
738 | dev = NULL; | ||
739 | } | ||
740 | #endif | ||
741 | mutex_unlock(&usbfs_mutex); | 730 | mutex_unlock(&usbfs_mutex); |
742 | 731 | ||
743 | if (!dev) | 732 | if (!dev) |