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

V4L/DVB: bt866: 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
7a49e540 61a489c8

+21 -7
+21 -7
drivers/media/video/bt866.c
··· 34 34 #include <linux/ioctl.h> 35 35 #include <asm/uaccess.h> 36 36 #include <linux/i2c.h> 37 - #include <linux/i2c-id.h> 38 37 #include <linux/videodev2.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 43 41 MODULE_DESCRIPTION("Brooktree-866 video encoder driver"); 44 42 MODULE_AUTHOR("Mike Bernson & Dave Perks"); ··· 230 232 }; 231 233 MODULE_DEVICE_TABLE(i2c, bt866_id); 232 234 233 - static struct v4l2_i2c_driver_data v4l2_i2c_data = { 234 - .name = "bt866", 235 - .probe = bt866_probe, 236 - .remove = bt866_remove, 237 - .id_table = bt866_id, 235 + static struct i2c_driver bt866_driver = { 236 + .driver = { 237 + .owner = THIS_MODULE, 238 + .name = "bt866", 239 + }, 240 + .probe = bt866_probe, 241 + .remove = bt866_remove, 242 + .id_table = bt866_id, 238 243 }; 244 + 245 + static __init int init_bt866(void) 246 + { 247 + return i2c_add_driver(&bt866_driver); 248 + } 249 + 250 + static __exit void exit_bt866(void) 251 + { 252 + i2c_del_driver(&bt866_driver); 253 + } 254 + 255 + module_init(init_bt866); 256 + module_exit(exit_bt866);