diff options
Diffstat (limited to 'drivers/media/video/adv7175.c')
-rw-r--r-- | drivers/media/video/adv7175.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/drivers/media/video/adv7175.c b/drivers/media/video/adv7175.c index f1ba0d742c65..f318b51448b3 100644 --- a/drivers/media/video/adv7175.c +++ b/drivers/media/video/adv7175.c | |||
@@ -30,11 +30,9 @@ | |||
30 | #include <linux/ioctl.h> | 30 | #include <linux/ioctl.h> |
31 | #include <asm/uaccess.h> | 31 | #include <asm/uaccess.h> |
32 | #include <linux/i2c.h> | 32 | #include <linux/i2c.h> |
33 | #include <linux/i2c-id.h> | ||
34 | #include <linux/videodev2.h> | 33 | #include <linux/videodev2.h> |
35 | #include <media/v4l2-device.h> | 34 | #include <media/v4l2-device.h> |
36 | #include <media/v4l2-chip-ident.h> | 35 | #include <media/v4l2-chip-ident.h> |
37 | #include <media/v4l2-i2c-drv.h> | ||
38 | 36 | ||
39 | MODULE_DESCRIPTION("Analog Devices ADV7175 video encoder driver"); | 37 | MODULE_DESCRIPTION("Analog Devices ADV7175 video encoder driver"); |
40 | MODULE_AUTHOR("Dave Perks"); | 38 | MODULE_AUTHOR("Dave Perks"); |
@@ -376,9 +374,25 @@ static const struct i2c_device_id adv7175_id[] = { | |||
376 | }; | 374 | }; |
377 | MODULE_DEVICE_TABLE(i2c, adv7175_id); | 375 | MODULE_DEVICE_TABLE(i2c, adv7175_id); |
378 | 376 | ||
379 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 377 | static struct i2c_driver adv7175_driver = { |
380 | .name = "adv7175", | 378 | .driver = { |
381 | .probe = adv7175_probe, | 379 | .owner = THIS_MODULE, |
382 | .remove = adv7175_remove, | 380 | .name = "adv7175", |
383 | .id_table = adv7175_id, | 381 | }, |
382 | .probe = adv7175_probe, | ||
383 | .remove = adv7175_remove, | ||
384 | .id_table = adv7175_id, | ||
384 | }; | 385 | }; |
386 | |||
387 | static __init int init_adv7175(void) | ||
388 | { | ||
389 | return i2c_add_driver(&adv7175_driver); | ||
390 | } | ||
391 | |||
392 | static __exit void exit_adv7175(void) | ||
393 | { | ||
394 | i2c_del_driver(&adv7175_driver); | ||
395 | } | ||
396 | |||
397 | module_init(init_adv7175); | ||
398 | module_exit(exit_adv7175); | ||