summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7111.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/saa7111.c')
-rw-r--r--linux/drivers/media/video/saa7111.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/linux/drivers/media/video/saa7111.c b/linux/drivers/media/video/saa7111.c
index 461e797cc..7dc3bae14 100644
--- a/linux/drivers/media/video/saa7111.c
+++ b/linux/drivers/media/video/saa7111.c
@@ -57,8 +57,6 @@ struct saa7111 {
int sat;
};
-/* hmm, the saa7111(a) specs don't say anything about address 34>>1 (= 17 = 0x11),
- only for 0x24 and 0x25 ... */
static unsigned short normal_i2c[] = { 0x24, 0x25, I2C_CLIENT_END };
static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
@@ -205,17 +203,6 @@ static int saa7111_command(struct i2c_client *client, unsigned int cmd,
cap->outputs = 1;
}
break;
- case DECODER_INIT:
- {
- int i = 0;
- struct video_decoder_init *init = arg;
- i = i2c_master_send(client, init->data, init->count);
- if (i < 0) {
- return -EFAULT;
- } else {
- }
- }
- break;
case DECODER_GET_STATUS:
{
int *iarg = arg;
@@ -401,6 +388,9 @@ static int saa7111_command(struct i2c_client *client, unsigned int cmd,
/* ----------------------------------------------------------------------- */
static struct i2c_driver i2c_driver_saa7111 = {
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,54)
+ .owner = THIS_MODULE,
+#endif
.name = "saa7111", /* name */
.id = I2C_DRIVERID_SAA7111A, /* ID */
.flags = I2C_DF_NOTIFY,