diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2013-02-18 19:54:18 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-20 13:04:58 -0700 |
commit | a4371b6605f7b6930ba95df316948be6b306be73 (patch) | |
tree | 4ce486c02b0df229d6bffa31ccd2059e92a2ab6a /drivers | |
parent | 0319f9909ce68a7516dfc8d53400e07168d281a8 (diff) | |
download | lwn-a4371b6605f7b6930ba95df316948be6b306be73.tar.gz lwn-a4371b6605f7b6930ba95df316948be6b306be73.zip |
staging: vt6656: Fix oops on resume from suspend.
commit 6987a6dabfc40222ef767f67b57212fe3a0225fb upstream.
Remove usb_put_dev from vt6656_suspend and usb_get_dev
from vt6566_resume.
These are not normally in suspend/resume functions.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 87394541d715..628545d261d8 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -718,8 +718,6 @@ static int vt6656_suspend(struct usb_interface *intf, pm_message_t message) if (device->flags & DEVICE_FLAGS_OPENED) device_close(device->dev); - usb_put_dev(interface_to_usbdev(intf)); - return 0; } @@ -730,8 +728,6 @@ static int vt6656_resume(struct usb_interface *intf) if (!device || !device->dev) return -ENODEV; - usb_get_dev(interface_to_usbdev(intf)); - if (!(device->flags & DEVICE_FLAGS_OPENED)) device_open(device->dev); |