Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB: bt819: remove obsolete v4l2-i2c-drv.h header

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
00cc8db8 099bd5e3

+21 -7
+21 -7
drivers/media/video/bt819.c
··· 33 33 #include <linux/ioctl.h> 34 34 #include <linux/delay.h> 35 35 #include <linux/i2c.h> 36 - #include <linux/i2c-id.h> 37 36 #include <linux/videodev2.h> 38 37 #include <linux/slab.h> 39 38 #include <media/v4l2-device.h> 40 39 #include <media/v4l2-chip-ident.h> 41 - #include <media/v4l2-i2c-drv.h> 42 40 #include <media/bt819.h> 43 41 44 42 MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); ··· 535 537 }; 536 538 MODULE_DEVICE_TABLE(i2c, bt819_id); 537 539 538 - static struct v4l2_i2c_driver_data v4l2_i2c_data = { 539 - .name = "bt819", 540 - .probe = bt819_probe, 541 - .remove = bt819_remove, 542 - .id_table = bt819_id, 540 + static struct i2c_driver bt819_driver = { 541 + .driver = { 542 + .owner = THIS_MODULE, 543 + .name = "bt819", 544 + }, 545 + .probe = bt819_probe, 546 + .remove = bt819_remove, 547 + .id_table = bt819_id, 543 548 }; 549 + 550 + static __init int init_bt819(void) 551 + { 552 + return i2c_add_driver(&bt819_driver); 553 + } 554 + 555 + static __exit void exit_bt819(void) 556 + { 557 + i2c_del_driver(&bt819_driver); 558 + } 559 + 560 + module_init(init_bt819); 561 + module_exit(exit_bt819);