diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-29 19:04:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:23 -0400 |
commit | acebc70d4a789df21270690c70928b8a836caad7 (patch) | |
tree | 63c9c17b47ef46b2ece12f1a2d440cf362ea70bd /drivers/media/video/tea6415c.c | |
parent | 0c84674353a8c344d169aabce4dc4d44daaa270d (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/tea6415c.c')
-rw-r--r-- | drivers/media/video/tea6415c.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 | |||
174 | static const struct i2c_device_id tea6415c_id[] = { | 173 | static const struct i2c_device_id tea6415c_id[] = { |
175 | { "tea6415c", 0 }, | 174 | { "tea6415c", 0 }, |
176 | { } | 175 | { } |