diff options
Diffstat (limited to 'drivers/media/video/saa7110.c')
-rw-r--r-- | drivers/media/video/saa7110.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/saa7110.c b/drivers/media/video/saa7110.c index 3bca744e43af..7913f93979b8 100644 --- a/drivers/media/video/saa7110.c +++ b/drivers/media/video/saa7110.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <linux/videodev2.h> | 36 | #include <linux/videodev2.h> |
37 | #include <media/v4l2-device.h> | 37 | #include <media/v4l2-device.h> |
38 | #include <media/v4l2-chip-ident.h> | 38 | #include <media/v4l2-chip-ident.h> |
39 | #include <media/v4l2-i2c-drv.h> | ||
40 | 39 | ||
41 | MODULE_DESCRIPTION("Philips SAA7110 video decoder driver"); | 40 | MODULE_DESCRIPTION("Philips SAA7110 video decoder driver"); |
42 | MODULE_AUTHOR("Pauline Middelink"); | 41 | MODULE_AUTHOR("Pauline Middelink"); |
@@ -505,9 +504,25 @@ static const struct i2c_device_id saa7110_id[] = { | |||
505 | }; | 504 | }; |
506 | MODULE_DEVICE_TABLE(i2c, saa7110_id); | 505 | MODULE_DEVICE_TABLE(i2c, saa7110_id); |
507 | 506 | ||
508 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 507 | static struct i2c_driver saa7110_driver = { |
509 | .name = "saa7110", | 508 | .driver = { |
510 | .probe = saa7110_probe, | 509 | .owner = THIS_MODULE, |
511 | .remove = saa7110_remove, | 510 | .name = "saa7110", |
512 | .id_table = saa7110_id, | 511 | }, |
512 | .probe = saa7110_probe, | ||
513 | .remove = saa7110_remove, | ||
514 | .id_table = saa7110_id, | ||
513 | }; | 515 | }; |
516 | |||
517 | static __init int init_saa7110(void) | ||
518 | { | ||
519 | return i2c_add_driver(&saa7110_driver); | ||
520 | } | ||
521 | |||
522 | static __exit void exit_saa7110(void) | ||
523 | { | ||
524 | i2c_del_driver(&saa7110_driver); | ||
525 | } | ||
526 | |||
527 | module_init(init_saa7110); | ||
528 | module_exit(exit_saa7110); | ||