Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330682
b: refs/heads/master
c: 6da74b1
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Aug 6, 2012
1 parent 84551f2 commit 25c05a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ca477ea8dceb13eb2f91b13d8ff25a7b3113f7e
refs/heads/master: 6da74b1da2caf8a659cde68a8faafb766e04037c
25 changes: 23 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb-v2/az6007.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,16 +876,37 @@ static struct usb_device_id az6007_usb_table[] = {

MODULE_DEVICE_TABLE(usb, az6007_usb_table);

static int az6007_suspend(struct usb_interface *intf, pm_message_t msg)
{
struct dvb_usb_device *d = usb_get_intfdata(intf);

az6007_ci_uninit(d);
return dvb_usbv2_suspend(intf, msg);
}

static int az6007_resume(struct usb_interface *intf)
{
struct dvb_usb_device *d = usb_get_intfdata(intf);
struct dvb_usb_adapter *adap = &d->adapter[0];

az6007_ci_init(adap);
return dvb_usbv2_resume(intf);
}

/* usb specific object needed to register this driver with the usb subsystem */
static struct usb_driver az6007_usb_driver = {
.name = KBUILD_MODNAME,
.id_table = az6007_usb_table,
.probe = dvb_usbv2_probe,
.disconnect = az6007_usb_disconnect,
.suspend = dvb_usbv2_suspend,
.resume = dvb_usbv2_resume,
.no_dynamic_id = 1,
.soft_unbind = 1,
/*
* FIXME: need to implement reset_resume, likely with
* dvb-usb-v2 core support
*/
.suspend = az6007_suspend,
.resume = az6007_resume,
};

module_usb_driver(az6007_usb_driver);
Expand Down

0 comments on commit 25c05a7

Please sign in to comment.