diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-09-15 14:49:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:06:04 -0400 |
commit | c9611802b6230bd584b667790cd7844c3414a172 (patch) | |
tree | 6f5f610f4bad1a1eec799f1c0b3e212109fa45fa /drivers/media/video/adv7170.c | |
parent | ad62cdfe396a7f51b200db8c85e75805028889a0 (diff) |
V4L/DVB: adv7170: remove obsolete v4l2-i2c-drv.h header
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/adv7170.c')
-rw-r--r-- | drivers/media/video/adv7170.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/drivers/media/video/adv7170.c b/drivers/media/video/adv7170.c index 48e89fbf391b..23ba5c37c3e4 100644 --- a/drivers/media/video/adv7170.c +++ b/drivers/media/video/adv7170.c | |||
@@ -34,11 +34,9 @@ | |||
34 | #include <linux/ioctl.h> | 34 | #include <linux/ioctl.h> |
35 | #include <asm/uaccess.h> | 35 | #include <asm/uaccess.h> |
36 | #include <linux/i2c.h> | 36 | #include <linux/i2c.h> |
37 | #include <linux/i2c-id.h> | ||
38 | #include <linux/videodev2.h> | 37 | #include <linux/videodev2.h> |
39 | #include <media/v4l2-device.h> | 38 | #include <media/v4l2-device.h> |
40 | #include <media/v4l2-chip-ident.h> | 39 | #include <media/v4l2-chip-ident.h> |
41 | #include <media/v4l2-i2c-drv.h> | ||
42 | 40 | ||
43 | MODULE_DESCRIPTION("Analog Devices ADV7170 video encoder driver"); | 41 | MODULE_DESCRIPTION("Analog Devices ADV7170 video encoder driver"); |
44 | MODULE_AUTHOR("Maxim Yevtyushkin"); | 42 | MODULE_AUTHOR("Maxim Yevtyushkin"); |
@@ -337,9 +335,25 @@ static const struct i2c_device_id adv7170_id[] = { | |||
337 | }; | 335 | }; |
338 | MODULE_DEVICE_TABLE(i2c, adv7170_id); | 336 | MODULE_DEVICE_TABLE(i2c, adv7170_id); |
339 | 337 | ||
340 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 338 | static struct i2c_driver adv7170_driver = { |
341 | .name = "adv7170", | 339 | .driver = { |
342 | .probe = adv7170_probe, | 340 | .owner = THIS_MODULE, |
343 | .remove = adv7170_remove, | 341 | .name = "adv7170", |
344 | .id_table = adv7170_id, | 342 | }, |
343 | .probe = adv7170_probe, | ||
344 | .remove = adv7170_remove, | ||
345 | .id_table = adv7170_id, | ||
345 | }; | 346 | }; |
347 | |||
348 | static __init int init_adv7170(void) | ||
349 | { | ||
350 | return i2c_add_driver(&adv7170_driver); | ||
351 | } | ||
352 | |||
353 | static __exit void exit_adv7170(void) | ||
354 | { | ||
355 | i2c_del_driver(&adv7170_driver); | ||
356 | } | ||
357 | |||
358 | module_init(init_adv7170); | ||
359 | module_exit(exit_adv7170); | ||