diff options
Diffstat (limited to 'src/af903x-core.c')
-rw-r--r-- | src/af903x-core.c | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/af903x-core.c b/src/af903x-core.c index cf69d6a..5d49694 100644 --- a/src/af903x-core.c +++ b/src/af903x-core.c @@ -10,10 +10,10 @@ static int af903x_probe(struct usb_interface *intf, int retval = -ENOMEM; int i; - deb_data("===af903x usb device pluged in!! ===\n"); + printk("===af903x usb device pluged in!! ===\n"); retval = Device_init(interface_to_usbdev(intf),&DC, true); if (retval){ - if(retval) deb_data("Device_init Fail: 0x%08x\n", retval); + printk("Device_init Fail: 0x%08x\n", retval); return retval; } @@ -22,23 +22,16 @@ static int af903x_probe(struct usb_interface *intf, for (i = 0; i < af903x_device_count; i++) { -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18) if (DC.architecture == Architecture_PIP) af903x_properties[i].num_adapters = 2; -#endif - -#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,25) - if (dvb_usb_device_init(intf, &af903x_properties[i], THIS_MODULE, NULL) == 0) - {deb_data("dvb_usb_device_init success!!\n");return 0;} -#else if (dvb_usb_device_init(intf, &af903x_properties[i], THIS_MODULE, NULL,adapter_nr) == 0) - {deb_data("dvb_usb_device_init success!!\n");return 0;} -#endif + {printk("dvb_usb_device_init success!!\n");return 0;} } 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__); @@ -48,8 +41,8 @@ static int af903x_suspend(struct usb_interface *intf, u32 state) #else if (DevicePower) { - error = DL_CheckTunerInited(0, &TunerInited0); - error = DL_CheckTunerInited(1, &TunerInited1); + error = DL_CheckTunerInited(0, (Bool *) &TunerInited0); + error = DL_CheckTunerInited(1, (Bool *) &TunerInited1); error = DL_ApCtrl(0, 0); error = DL_ApCtrl(1, 0); @@ -59,9 +52,9 @@ static int af903x_suspend(struct usb_interface *intf, u32 state) } #endif return 0; -} +}*/ -static int af903x_resume(struct usb_interface *intf) +/*static int af903x_resume(struct usb_interface *intf) { int retval = -ENOMEM; int error; @@ -73,7 +66,7 @@ static int af903x_resume(struct usb_interface *intf) { retval = Device_init(interface_to_usbdev(intf),&DC, false); if (retval) - if(retval) deb_data("Device_init Fail: 0x%08x\n", retval); + if(retval) printk("Device_init Fail: 0x%08x\n", retval); if (TunerInited0) error = DL_ApCtrl(0, 1); @@ -82,7 +75,7 @@ static int af903x_resume(struct usb_interface *intf) } #endif return 0; -} +}*/ static struct usb_driver af903x_driver = { @@ -102,7 +95,7 @@ static int __init af903x_module_init(void) int result; info("%s",__FUNCTION__); - deb_data("dvb_usb_af903x Module is loaded \n"); + printk("dvb_usb_af903x Module is loaded \n"); if ((result = usb_register(&af903x_driver))) { err("usb_register failed. Error number %d",result); @@ -113,7 +106,7 @@ static int __init af903x_module_init(void) static void __exit af903x_module_exit(void) { - deb_data("dvb_usb_af903x Module is unloaded!\n"); + printk("dvb_usb_af903x Module is unloaded!\n"); usb_deregister(&af903x_driver); } |