summaryrefslogtreecommitdiff
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.de>2007-03-02 00:31:24 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2007-03-10 06:52:24 +0300
commit5bb16d189f5425f3722bc91d9211afe303ee022b (patch)
tree814a97e5fed1591e74450f15123476f91f6cc86d /drivers/usb/core/hub.c
parent7bc4b81dedf54166e967afa8bc03c8bfeb40fd27 (diff)
downloadlinux-5bb16d189f5425f3722bc91d9211afe303ee022b.tar.xz
USB: kill dead code from hub.c
this kills residual obsoletet code from hub.c Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index ce6c6a0d44bf..b89a98e61323 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1281,12 +1281,6 @@ int usb_new_device(struct usb_device *udev)
{
int err;
- /* Lock ourself into memory in order to keep a probe sequence
- * sleeping in a new thread from allowing us to be unloaded.
- */
- if (!try_module_get(THIS_MODULE))
- return -EINVAL;
-
/* Determine quirks */
usb_detect_quirks(udev);
@@ -1390,7 +1384,6 @@ int usb_new_device(struct usb_device *udev)
usb_autoresume_device(udev->parent);
exit:
- module_put(THIS_MODULE);
return err;
fail: