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

V4L/DVB: saa7127: 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
96209a20 37a0cfcb

+21 -6
+21 -6
drivers/media/video/saa7127.c
··· 55 55 #include <linux/videodev2.h> 56 56 #include <media/v4l2-device.h> 57 57 #include <media/v4l2-chip-ident.h> 58 - #include <media/v4l2-i2c-drv.h> 59 58 #include <media/saa7127.h> 60 59 61 60 static int debug; ··· 842 843 }; 843 844 MODULE_DEVICE_TABLE(i2c, saa7127_id); 844 845 845 - static struct v4l2_i2c_driver_data v4l2_i2c_data = { 846 - .name = "saa7127", 847 - .probe = saa7127_probe, 848 - .remove = saa7127_remove, 849 - .id_table = saa7127_id, 846 + static struct i2c_driver saa7127_driver = { 847 + .driver = { 848 + .owner = THIS_MODULE, 849 + .name = "saa7127", 850 + }, 851 + .probe = saa7127_probe, 852 + .remove = saa7127_remove, 853 + .id_table = saa7127_id, 850 854 }; 855 + 856 + static __init int init_saa7127(void) 857 + { 858 + return i2c_add_driver(&saa7127_driver); 859 + } 860 + 861 + static __exit void exit_saa7127(void) 862 + { 863 + i2c_del_driver(&saa7127_driver); 864 + } 865 + 866 + module_init(init_saa7127); 867 + module_exit(exit_saa7127);