diff options
Diffstat (limited to 'drivers/media/video/saa7191.c')
-rw-r--r-- | drivers/media/video/saa7191.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/saa7191.c b/drivers/media/video/saa7191.c index a2513772196b..211fa25a1239 100644 --- a/drivers/media/video/saa7191.c +++ b/drivers/media/video/saa7191.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/i2c.h> | 23 | #include <linux/i2c.h> |
24 | #include <media/v4l2-device.h> | 24 | #include <media/v4l2-device.h> |
25 | #include <media/v4l2-chip-ident.h> | 25 | #include <media/v4l2-chip-ident.h> |
26 | #include <media/v4l2-i2c-drv.h> | ||
27 | 26 | ||
28 | #include "saa7191.h" | 27 | #include "saa7191.h" |
29 | 28 | ||
@@ -647,9 +646,25 @@ static const struct i2c_device_id saa7191_id[] = { | |||
647 | }; | 646 | }; |
648 | MODULE_DEVICE_TABLE(i2c, saa7191_id); | 647 | MODULE_DEVICE_TABLE(i2c, saa7191_id); |
649 | 648 | ||
650 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 649 | static struct i2c_driver saa7191_driver = { |
651 | .name = "saa7191", | 650 | .driver = { |
652 | .probe = saa7191_probe, | 651 | .owner = THIS_MODULE, |
653 | .remove = saa7191_remove, | 652 | .name = "saa7191", |
654 | .id_table = saa7191_id, | 653 | }, |
654 | .probe = saa7191_probe, | ||
655 | .remove = saa7191_remove, | ||
656 | .id_table = saa7191_id, | ||
655 | }; | 657 | }; |
658 | |||
659 | static __init int init_saa7191(void) | ||
660 | { | ||
661 | return i2c_add_driver(&saa7191_driver); | ||
662 | } | ||
663 | |||
664 | static __exit void exit_saa7191(void) | ||
665 | { | ||
666 | i2c_del_driver(&saa7191_driver); | ||
667 | } | ||
668 | |||
669 | module_init(init_saa7191); | ||
670 | module_exit(exit_saa7191); | ||