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

V4L/DVB: saa7191: 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
534d4f83 dc71443f

+21 -6
+21 -6
drivers/media/video/saa7191.c
··· 23 23 #include <linux/i2c.h> 24 24 #include <media/v4l2-device.h> 25 25 #include <media/v4l2-chip-ident.h> 26 - #include <media/v4l2-i2c-drv.h> 27 26 28 27 #include "saa7191.h" 29 28 ··· 646 647 }; 647 648 MODULE_DEVICE_TABLE(i2c, saa7191_id); 648 649 649 - static struct v4l2_i2c_driver_data v4l2_i2c_data = { 650 - .name = "saa7191", 651 - .probe = saa7191_probe, 652 - .remove = saa7191_remove, 653 - .id_table = saa7191_id, 650 + static struct i2c_driver saa7191_driver = { 651 + .driver = { 652 + .owner = THIS_MODULE, 653 + .name = "saa7191", 654 + }, 655 + .probe = saa7191_probe, 656 + .remove = saa7191_remove, 657 + .id_table = saa7191_id, 654 658 }; 659 + 660 + static __init int init_saa7191(void) 661 + { 662 + return i2c_add_driver(&saa7191_driver); 663 + } 664 + 665 + static __exit void exit_saa7191(void) 666 + { 667 + i2c_del_driver(&saa7191_driver); 668 + } 669 + 670 + module_init(init_saa7191); 671 + module_exit(exit_saa7191);