staging: vt6656: Fix oops on resume from suspend.

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>
Cc: stable@vger.kernel.org # 3.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2013-02-18 19:54:18 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 1223ad3240
Коммит 6987a6dabf
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -669,8 +669,6 @@ static int vt6656_suspend(struct usb_interface *intf, pm_message_t message)
if (device->flags & DEVICE_FLAGS_OPENED) if (device->flags & DEVICE_FLAGS_OPENED)
device_close(device->dev); device_close(device->dev);
usb_put_dev(interface_to_usbdev(intf));
return 0; return 0;
} }
@ -681,8 +679,6 @@ static int vt6656_resume(struct usb_interface *intf)
if (!device || !device->dev) if (!device || !device->dev)
return -ENODEV; return -ENODEV;
usb_get_dev(interface_to_usbdev(intf));
if (!(device->flags & DEVICE_FLAGS_OPENED)) if (!(device->flags & DEVICE_FLAGS_OPENED))
device_open(device->dev); device_open(device->dev);