summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/misc/trancevibrator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/trancevibrator.c b/drivers/usb/misc/trancevibrator.c
index 6aaec2db360b..37f6b79889a6 100644
--- a/drivers/usb/misc/trancevibrator.c
+++ b/drivers/usb/misc/trancevibrator.c
@@ -92,7 +92,7 @@ static int tv_probe(struct usb_interface *interface,
goto error;
}
- dev->udev = usb_get_dev(udev);
+ dev->udev = udev;
usb_set_intfdata(interface, dev);
return 0;
@@ -108,7 +108,6 @@ static void tv_disconnect(struct usb_interface *interface)
dev = usb_get_intfdata (interface);
usb_set_intfdata(interface, NULL);
- usb_put_dev(dev->udev);
kfree(dev);
}