aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa717x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/saa717x.c')
-rw-r--r--drivers/media/video/saa717x.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/saa717x.c b/drivers/media/video/saa717x.c
index 45f8bfc1342e..b6172c2c517e 100644
--- a/drivers/media/video/saa717x.c
+++ b/drivers/media/video/saa717x.c
@@ -39,7 +39,6 @@
39#include <linux/i2c.h> 39#include <linux/i2c.h>
40#include <media/v4l2-device.h> 40#include <media/v4l2-device.h>
41#include <media/v4l2-ctrls.h> 41#include <media/v4l2-ctrls.h>
42#include <media/v4l2-i2c-drv.h>
43 42
44MODULE_DESCRIPTION("Philips SAA717x audio/video decoder driver"); 43MODULE_DESCRIPTION("Philips SAA717x audio/video decoder driver");
45MODULE_AUTHOR("K. Ohta, T. Adachi, Hans Verkuil"); 44MODULE_AUTHOR("K. Ohta, T. Adachi, Hans Verkuil");
@@ -1366,9 +1365,25 @@ static const struct i2c_device_id saa717x_id[] = {
1366}; 1365};
1367MODULE_DEVICE_TABLE(i2c, saa717x_id); 1366MODULE_DEVICE_TABLE(i2c, saa717x_id);
1368 1367
1369static struct v4l2_i2c_driver_data v4l2_i2c_data = { 1368static struct i2c_driver saa717x_driver = {
1370 .name = "saa717x", 1369 .driver = {
1371 .probe = saa717x_probe, 1370 .owner = THIS_MODULE,
1372 .remove = saa717x_remove, 1371 .name = "saa717x",
1373 .id_table = saa717x_id, 1372 },
1373 .probe = saa717x_probe,
1374 .remove = saa717x_remove,
1375 .id_table = saa717x_id,
1374}; 1376};
1377
1378static __init int init_saa717x(void)
1379{
1380 return i2c_add_driver(&saa717x_driver);
1381}
1382
1383static __exit void exit_saa717x(void)
1384{
1385 i2c_del_driver(&saa717x_driver);
1386}
1387
1388module_init(init_saa717x);
1389module_exit(exit_saa717x);