Commit 847beac7 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Ben Hutchings

staging: vt6656: Fix oops on resume from suspend.

commit 6987a6da 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: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent a4e0e072
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment