diff options
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index 4dfd8173c..dd1454e41 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -125,8 +125,9 @@ struct ttusb { int filterstate[TTUSB_MAXFILTER]; /* 0: not busy, 1: busy */ #endif } channel[TTUSB_MAXCHANNEL]; - +#if 0 devfs_handle_t stc_devfs_handle; +#endif }; /* ugly workaround ... don't know why it's neccessary to read */ @@ -774,9 +775,7 @@ void ttusb_iso_irq (struct urb *urb, struct pt_regs *ptregs) } } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) - usb_submit_urb(urb URB_MEM_FLAG); -#endif + usb_submit_urb(urb, GFP_KERNEL); } @@ -809,7 +808,7 @@ int ttusb_alloc_iso_urbs (struct ttusb *ttusb) for (i=0; i<ISO_BUF_COUNT; i++) { struct urb *urb; - if (!(urb = usb_alloc_urb (FRAMES_PER_ISO_BUF URB_MEM_FLAG))) { + if (!(urb = usb_alloc_urb (FRAMES_PER_ISO_BUF, GFP_KERNEL))) { ttusb_free_iso_urbs (ttusb); return -ENOMEM; } @@ -868,15 +867,8 @@ int ttusb_start_iso_xfer (struct ttusb *ttusb) } } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) - for (i=0; i<ISO_BUF_COUNT; i++) { - int next = (i + 1) % ISO_BUF_COUNT; - ttusb->iso_urb[i]->next = ttusb->iso_urb[next]; - } -#endif - for (i=0; i<ISO_BUF_COUNT; i++) { - if ((err = usb_submit_urb (ttusb->iso_urb[i] URB_MEM_FLAG))) { + if ((err = usb_submit_urb(ttusb->iso_urb[i], GFP_KERNEL))) { ttusb_stop_iso_xfer (ttusb); printk ("%s: failed urb submission (%i: err = %i)!\n", __FUNCTION__, i, err); @@ -1018,6 +1010,8 @@ int ttusb_setup_interfaces (struct ttusb *ttusb) return 0; } + +#if 0 static u8 stc_firmware[8192]; static @@ -1068,6 +1062,7 @@ struct file_operations stc_fops = { .open = stc_open, .release = stc_release, }; +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) @@ -1104,8 +1099,6 @@ int ttusb_probe (struct usb_interface *intf, #endif -// MOD_INC_USE_COUNT; - memset (ttusb, 0, sizeof(struct ttusb)); for (channel=0; channel < TTUSB_MAXCHANNEL; ++channel) { @@ -1168,6 +1161,7 @@ int ttusb_probe (struct usb_interface *intf, } err: +#if 0 ttusb->stc_devfs_handle = devfs_register( ttusb->adapter->devfs_handle, TTUSB_BUDGET_NAME, @@ -1175,7 +1169,7 @@ err: S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH, &stc_fops, ttusb); - +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) return (void*) ttusb; #else @@ -1208,8 +1202,9 @@ void ttusb_disconnect (struct usb_interface *intf) #undef devfs_remove #define devfs_remove(x) devfs_unregister(ttusb->stc_devfs_handle); #endif +#if 0 devfs_remove(TTUSB_BUDGET_NAME); - +#endif ttusb->dvb_demux.dmx.close(&ttusb->dvb_demux.dmx); dvb_net_release(&ttusb->dvbnet); dvb_dmxdev_release(&ttusb->dmxdev); @@ -1222,8 +1217,6 @@ void ttusb_disconnect (struct usb_interface *intf) kfree (ttusb); -// MOD_DEC_USE_COUNT; - dprintk ("%s: TTUSB DVB disconnected\n", __FUNCTION__); } |