diff options
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index c3e403007..50408cee0 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -755,7 +755,11 @@ static void ttusb_dec_stop_iso_xfer(struct ttusb_dec *dec) if (!dec->iso_stream_count) { for (i = 0; i < ISO_BUF_COUNT; i++) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,7) usb_unlink_urb(dec->iso_urb[i]); +#else + usb_kill_urb(dec->iso_urb[i]); +#endif } up(&dec->iso_sem); @@ -820,7 +824,11 @@ static int ttusb_dec_start_iso_xfer(struct ttusb_dec *dec) "error %d\n", __FUNCTION__, i, result); while (i) { +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,7) usb_unlink_urb(dec->iso_urb[i - 1]); +#else + usb_kill_urb(dec->iso_urb[i - 1]); +#endif i--; } @@ -1378,7 +1386,11 @@ static void ttusb_dec_exit_usb(struct ttusb_dec *dec) dec->iso_stream_count = 0; for (i = 0; i < ISO_BUF_COUNT; i++) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,7) usb_unlink_urb(dec->iso_urb[i]); +#else + usb_kill_urb(dec->iso_urb[i]); +#endif ttusb_dec_free_iso_urbs(dec); } |