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

V4L/DVB: bt856: 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
3f417200 534d4f83

+21 -7
+21 -7
drivers/media/video/bt856.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-856A video encoder driver"); 44 42 MODULE_AUTHOR("Mike Bernson & Dave Perks"); ··· 260 262 }; 261 263 MODULE_DEVICE_TABLE(i2c, bt856_id); 262 264 263 - static struct v4l2_i2c_driver_data v4l2_i2c_data = { 264 - .name = "bt856", 265 - .probe = bt856_probe, 266 - .remove = bt856_remove, 267 - .id_table = bt856_id, 265 + static struct i2c_driver bt856_driver = { 266 + .driver = { 267 + .owner = THIS_MODULE, 268 + .name = "bt856", 269 + }, 270 + .probe = bt856_probe, 271 + .remove = bt856_remove, 272 + .id_table = bt856_id, 268 273 }; 274 + 275 + static __init int init_bt856(void) 276 + { 277 + return i2c_add_driver(&bt856_driver); 278 + } 279 + 280 + static __exit void exit_bt856(void) 281 + { 282 + i2c_del_driver(&bt856_driver); 283 + } 284 + 285 + module_init(init_bt856); 286 + module_exit(exit_bt856);