aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-15 14:37:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:02 -0400
commitcd5882c531717090e3e3501be0a2c2ebe5ec79c6 (patch)
tree149b1e8bf40182e5155e68169b9de03dc11f7935
parent02a2098adbe6c1053cbcd81ecb9422f4502da925 (diff)
V4L/DVB: tda9875: remove obsolete v4l2-i2c-drv.h header
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/tda9875.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/tda9875.c b/drivers/media/video/tda9875.c
index 24e2b7d2ae5..35b6ff5db31 100644
--- a/drivers/media/video/tda9875.c
+++ b/drivers/media/video/tda9875.c
@@ -28,7 +28,6 @@
28#include <linux/i2c.h> 28#include <linux/i2c.h>
29#include <linux/videodev2.h> 29#include <linux/videodev2.h>
30#include <media/v4l2-device.h> 30#include <media/v4l2-device.h>
31#include <media/v4l2-i2c-drv.h>
32#include <media/i2c-addr.h> 31#include <media/i2c-addr.h>
33 32
34static int debug; /* insmod parameter */ 33static int debug; /* insmod parameter */
@@ -388,9 +387,25 @@ static const struct i2c_device_id tda9875_id[] = {
388}; 387};
389MODULE_DEVICE_TABLE(i2c, tda9875_id); 388MODULE_DEVICE_TABLE(i2c, tda9875_id);
390 389
391static struct v4l2_i2c_driver_data v4l2_i2c_data = { 390static struct i2c_driver tda9875_driver = {
392 .name = "tda9875", 391 .driver = {
393 .probe = tda9875_probe, 392 .owner = THIS_MODULE,
394 .remove = tda9875_remove, 393 .name = "tda9875",
395 .id_table = tda9875_id, 394 },
395 .probe = tda9875_probe,
396 .remove = tda9875_remove,
397 .id_table = tda9875_id,
396}; 398};
399
400static __init int init_tda9875(void)
401{
402 return i2c_add_driver(&tda9875_driver);
403}
404
405static __exit void exit_tda9875(void)
406{
407 i2c_del_driver(&tda9875_driver);
408}
409
410module_init(init_tda9875);
411module_exit(exit_tda9875);