diff options
Diffstat (limited to 'drivers/media/video/saa7127.c')
-rw-r--r-- | drivers/media/video/saa7127.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/saa7127.c b/drivers/media/video/saa7127.c index 79fffcf39ba8..ad964616c9d2 100644 --- a/drivers/media/video/saa7127.c +++ b/drivers/media/video/saa7127.c | |||
@@ -55,7 +55,6 @@ | |||
55 | #include <linux/videodev2.h> | 55 | #include <linux/videodev2.h> |
56 | #include <media/v4l2-device.h> | 56 | #include <media/v4l2-device.h> |
57 | #include <media/v4l2-chip-ident.h> | 57 | #include <media/v4l2-chip-ident.h> |
58 | #include <media/v4l2-i2c-drv.h> | ||
59 | #include <media/saa7127.h> | 58 | #include <media/saa7127.h> |
60 | 59 | ||
61 | static int debug; | 60 | static int debug; |
@@ -843,9 +842,25 @@ static struct i2c_device_id saa7127_id[] = { | |||
843 | }; | 842 | }; |
844 | MODULE_DEVICE_TABLE(i2c, saa7127_id); | 843 | MODULE_DEVICE_TABLE(i2c, saa7127_id); |
845 | 844 | ||
846 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 845 | static struct i2c_driver saa7127_driver = { |
847 | .name = "saa7127", | 846 | .driver = { |
848 | .probe = saa7127_probe, | 847 | .owner = THIS_MODULE, |
849 | .remove = saa7127_remove, | 848 | .name = "saa7127", |
850 | .id_table = saa7127_id, | 849 | }, |
850 | .probe = saa7127_probe, | ||
851 | .remove = saa7127_remove, | ||
852 | .id_table = saa7127_id, | ||
851 | }; | 853 | }; |
854 | |||
855 | static __init int init_saa7127(void) | ||
856 | { | ||
857 | return i2c_add_driver(&saa7127_driver); | ||
858 | } | ||
859 | |||
860 | static __exit void exit_saa7127(void) | ||
861 | { | ||
862 | i2c_del_driver(&saa7127_driver); | ||
863 | } | ||
864 | |||
865 | module_init(init_saa7127); | ||
866 | module_exit(exit_saa7127); | ||