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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7111.c b/linux/drivers/media/video/saa7111.c
index b25b64bfc..286ee8f0d 100644
--- a/linux/drivers/media/video/saa7111.c
+++ b/linux/drivers/media/video/saa7111.c
@@ -121,7 +121,11 @@ static int saa7111_attach(struct i2c_adapter *adap, int addr, unsigned short fla
memset(decoder, 0, sizeof(*decoder));
decoder->client = client;
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
+ client->data = decoder;
+#else
i2c_set_clientdata(client, decoder);
+#endif
decoder->addr = addr;
decoder->norm = VIDEO_MODE_NTSC;
decoder->input = 0;