summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/usbvision
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-08 01:17:00 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-08 01:17:00 +0200
commit1e35850ac2509c324478d38091880e60ab28795f (patch)
treeffb89f595c6bcea9189a5f090fad092c8aa7428e /linux/drivers/media/video/usbvision
parent7ce87336c2f386ab6c35e985a5832d21b5cd7fab (diff)
downloadmediapointer-dvb-s2-1e35850ac2509c324478d38091880e60ab28795f.tar.gz
mediapointer-dvb-s2-1e35850ac2509c324478d38091880e60ab28795f.tar.bz2
v4l-dvb: remove support for kernels < 2.6.10
From: Hans Verkuil <hverkuil@xs4all.nl> Phase 2 removes support for kernels < 2.6.10. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/usbvision')
-rw-r--r--linux/drivers/media/video/usbvision/usbvision-core.c20
-rw-r--r--linux/drivers/media/video/usbvision/usbvision-i2c.c6
2 files changed, 0 insertions, 26 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-core.c b/linux/drivers/media/video/usbvision/usbvision-core.c
index c5bc897e9..bf464540c 100644
--- a/linux/drivers/media/video/usbvision/usbvision-core.c
+++ b/linux/drivers/media/video/usbvision/usbvision-core.c
@@ -2570,7 +2570,6 @@ void usbvision_stop_isoc(struct usb_usbvision *usbvision)
return;
/* Unschedule all of the iso td's */
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
for (bufIdx = 0; bufIdx < USBVISION_NUMSBUF; bufIdx++) {
usb_kill_urb(usbvision->sbuf[bufIdx].urb);
if (usbvision->sbuf[bufIdx].data){
@@ -2582,25 +2581,6 @@ void usbvision_stop_isoc(struct usb_usbvision *usbvision)
usb_free_urb(usbvision->sbuf[bufIdx].urb);
usbvision->sbuf[bufIdx].urb = NULL;
}
-#else
- for (bufIdx = 0; bufIdx < USBVISION_NUMSBUF; bufIdx++) {
- errCode = usb_unlink_urb(usbvision->sbuf[bufIdx].urb);
- if (errCode < 0)
- err("%s: usb_unlink_urb() failed: error %d",
- __func__, errCode);
- }
-
- if (usbvision->sbuf[bufIdx].data){
- usb_buffer_free(usbvision->dev,
- sb_size,
- usbvision->sbuf[bufIdx].data,
- usbvision->sbuf[bufIdx].urb->transfer_dma);
- }
- /* Delete them all */
- for (bufIdx = 0; bufIdx < USBVISION_NUMSBUF; bufIdx++)
- usb_free_urb(usbvision->sbuf[bufIdx].urb);
-#endif
-
PDEBUG(DBG_ISOC, "%s: streaming=Stream_Off\n", __func__);
usbvision->streaming = Stream_Off;
diff --git a/linux/drivers/media/video/usbvision/usbvision-i2c.c b/linux/drivers/media/video/usbvision/usbvision-i2c.c
index d6d12debc..e09d0bea5 100644
--- a/linux/drivers/media/video/usbvision/usbvision-i2c.c
+++ b/linux/drivers/media/video/usbvision/usbvision-i2c.c
@@ -540,13 +540,7 @@ static struct i2c_adapter i2c_adap_template = {
.id = I2C_HW_B_BT848, /* FIXME */
.client_register = attach_inform,
.client_unregister = detach_inform,
-#ifdef I2C_ADAP_CLASS_TV_ANALOG
- .class = I2C_ADAP_CLASS_TV_ANALOG,
-#else
-#ifdef I2C_CLASS_TV_ANALOG
.class = I2C_CLASS_TV_ANALOG,
-#endif
-#endif
};
static struct i2c_client i2c_client_template = {