diff options
Diffstat (limited to 'drivers/media/video/saa717x.c')
-rw-r--r-- | drivers/media/video/saa717x.c | 27 |
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 | ||
44 | MODULE_DESCRIPTION("Philips SAA717x audio/video decoder driver"); | 43 | MODULE_DESCRIPTION("Philips SAA717x audio/video decoder driver"); |
45 | MODULE_AUTHOR("K. Ohta, T. Adachi, Hans Verkuil"); | 44 | MODULE_AUTHOR("K. Ohta, T. Adachi, Hans Verkuil"); |
@@ -1366,9 +1365,25 @@ static const struct i2c_device_id saa717x_id[] = { | |||
1366 | }; | 1365 | }; |
1367 | MODULE_DEVICE_TABLE(i2c, saa717x_id); | 1366 | MODULE_DEVICE_TABLE(i2c, saa717x_id); |
1368 | 1367 | ||
1369 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 1368 | static 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 | |||
1378 | static __init int init_saa717x(void) | ||
1379 | { | ||
1380 | return i2c_add_driver(&saa717x_driver); | ||
1381 | } | ||
1382 | |||
1383 | static __exit void exit_saa717x(void) | ||
1384 | { | ||
1385 | i2c_del_driver(&saa717x_driver); | ||
1386 | } | ||
1387 | |||
1388 | module_init(init_saa717x); | ||
1389 | module_exit(exit_saa717x); | ||