aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-29 19:04:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 20:44:23 -0400
commitacebc70d4a789df21270690c70928b8a836caad7 (patch)
tree63c9c17b47ef46b2ece12f1a2d440cf362ea70bd /drivers/media/video
parent0c84674353a8c344d169aabce4dc4d44daaa270d (diff)
V4L/DVB (11372): v4l2: use old-style i2c API for kernels < 2.6.26 instead of < 2.6.22
Originally the intention was to switch to the new style i2c API starting with the introduction of the API in 2.6.22. However, the i2c_new_probed_device() function has a lethal bug that wasn't fixed until 2.6.25. Or more accurately, it was only fixed in the stable series of 2.6.25 and 2.6.26. Given the fact that the new i2c API also changed starting with 2.6.26 (the addition of i2c_device_id), it is easiest to switch APIs starting with 2.6.26. This patch updates all the legacy code accordingly. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/tda9840.c1
-rw-r--r--drivers/media/video/tea6415c.c1
-rw-r--r--drivers/media/video/tea6420.c1
-rw-r--r--drivers/media/video/tuner-core.c1
-rw-r--r--drivers/media/video/tvaudio.c1
5 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/video/tda9840.c b/drivers/media/video/tda9840.c
index fe1158094c24..d381fce3db40 100644
--- a/drivers/media/video/tda9840.c
+++ b/drivers/media/video/tda9840.c
@@ -192,7 +192,6 @@ static int tda9840_remove(struct i2c_client *client)
192 return 0; 192 return 0;
193} 193}
194 194
195
196static const struct i2c_device_id tda9840_id[] = { 195static const struct i2c_device_id tda9840_id[] = {
197 { "tda9840", 0 }, 196 { "tda9840", 0 },
198 { } 197 { }
diff --git a/drivers/media/video/tea6415c.c b/drivers/media/video/tea6415c.c
index d61c56f42bcd..ff696d14a5dd 100644
--- a/drivers/media/video/tea6415c.c
+++ b/drivers/media/video/tea6415c.c
@@ -170,7 +170,6 @@ static int tea6415c_remove(struct i2c_client *client)
170 return 0; 170 return 0;
171} 171}
172 172
173
174static const struct i2c_device_id tea6415c_id[] = { 173static const struct i2c_device_id tea6415c_id[] = {
175 { "tea6415c", 0 }, 174 { "tea6415c", 0 },
176 { } 175 { }
diff --git a/drivers/media/video/tea6420.c b/drivers/media/video/tea6420.c
index 34922232402a..8a55b46ea9b7 100644
--- a/drivers/media/video/tea6420.c
+++ b/drivers/media/video/tea6420.c
@@ -156,7 +156,6 @@ static int tea6420_remove(struct i2c_client *client)
156 return 0; 156 return 0;
157} 157}
158 158
159
160static const struct i2c_device_id tea6420_id[] = { 159static const struct i2c_device_id tea6420_id[] = {
161 { "tea6420", 0 }, 160 { "tea6420", 0 },
162 { } 161 { }
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index cc5f018b8eb4..78c377a399cb 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1164,7 +1164,6 @@ register_client:
1164 return 0; 1164 return 0;
1165} 1165}
1166 1166
1167
1168static int tuner_remove(struct i2c_client *client) 1167static int tuner_remove(struct i2c_client *client)
1169{ 1168{
1170 struct tuner *t = to_tuner(i2c_get_clientdata(client)); 1169 struct tuner *t = to_tuner(i2c_get_clientdata(client));
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index 2a49c839f8ac..17d50e3cd518 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -2069,7 +2069,6 @@ static int tvaudio_remove(struct i2c_client *client)
2069 return 0; 2069 return 0;
2070} 2070}
2071 2071
2072
2073/* This driver supports many devices and the idea is to let the driver 2072/* This driver supports many devices and the idea is to let the driver
2074 detect which device is present. So rather than listing all supported 2073 detect which device is present. So rather than listing all supported
2075 devices here, we pretend to support a single, fake device type. */ 2074 devices here, we pretend to support a single, fake device type. */