summaryrefslogtreecommitdiffstats
path: root/src/af903x-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/af903x-core.c')
-rw-r--r--src/af903x-core.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/af903x-core.c b/src/af903x-core.c
index 5d49694..0829a8e 100644
--- a/src/af903x-core.c
+++ b/src/af903x-core.c
@@ -31,14 +31,11 @@ static int af903x_probe(struct usb_interface *intf,
return -ENOMEM;
}
-/*static int af903x_suspend(struct usb_interface *intf, u32 state)
+static int af903x_suspend(struct usb_interface *intf, u32 state)
{
int error;
deb_data("Enter %s Function\n",__FUNCTION__);
-#ifdef EEEPC
- error = DL_Reboot();
-#else
if (DevicePower)
{
error = DL_CheckTunerInited(0, (Bool *) &TunerInited0);
@@ -50,18 +47,15 @@ static int af903x_probe(struct usb_interface *intf,
DeviceReboot = true;
}
-#endif
return 0;
-}*/
+}
-/*static int af903x_resume(struct usb_interface *intf)
+static int af903x_resume(struct usb_interface *intf)
{
int retval = -ENOMEM;
int error;
deb_data("Enter %s Function\n",__FUNCTION__);
-#ifdef EEEPC
-#else
if(DeviceReboot == true)
{
retval = Device_init(interface_to_usbdev(intf),&DC, false);
@@ -73,21 +67,17 @@ static int af903x_probe(struct usb_interface *intf,
if (TunerInited1)
error = DL_ApCtrl(1, 1);
}
-#endif
return 0;
-}*/
+}
static struct usb_driver af903x_driver = {
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
- .owner = THIS_MODULE,
-#endif
.name = "dvb_usb_af903x",
.probe = af903x_probe,
.disconnect = dvb_usb_device_exit,
.id_table = af903x_usb_id_table,
-// .suspend = af903x_suspend,
-// .resume = af903x_resume,
+ .suspend = af903x_suspend,
+ .resume = af903x_resume,
};
static int __init af903x_module_init(void)