diff options
-rw-r--r-- | drivers/media/video/bt856.c | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/drivers/media/video/bt856.c b/drivers/media/video/bt856.c index ae3337392505..a43059d4c799 100644 --- a/drivers/media/video/bt856.c +++ b/drivers/media/video/bt856.c | |||
@@ -34,11 +34,9 @@ | |||
34 | #include <linux/ioctl.h> | 34 | #include <linux/ioctl.h> |
35 | #include <asm/uaccess.h> | 35 | #include <asm/uaccess.h> |
36 | #include <linux/i2c.h> | 36 | #include <linux/i2c.h> |
37 | #include <linux/i2c-id.h> | ||
38 | #include <linux/videodev2.h> | 37 | #include <linux/videodev2.h> |
39 | #include <media/v4l2-device.h> | 38 | #include <media/v4l2-device.h> |
40 | #include <media/v4l2-chip-ident.h> | 39 | #include <media/v4l2-chip-ident.h> |
41 | #include <media/v4l2-i2c-drv.h> | ||
42 | 40 | ||
43 | MODULE_DESCRIPTION("Brooktree-856A video encoder driver"); | 41 | MODULE_DESCRIPTION("Brooktree-856A video encoder driver"); |
44 | MODULE_AUTHOR("Mike Bernson & Dave Perks"); | 42 | MODULE_AUTHOR("Mike Bernson & Dave Perks"); |
@@ -262,9 +260,25 @@ static const struct i2c_device_id bt856_id[] = { | |||
262 | }; | 260 | }; |
263 | MODULE_DEVICE_TABLE(i2c, bt856_id); | 261 | MODULE_DEVICE_TABLE(i2c, bt856_id); |
264 | 262 | ||
265 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 263 | static struct i2c_driver bt856_driver = { |
266 | .name = "bt856", | 264 | .driver = { |
267 | .probe = bt856_probe, | 265 | .owner = THIS_MODULE, |
268 | .remove = bt856_remove, | 266 | .name = "bt856", |
269 | .id_table = bt856_id, | 267 | }, |
268 | .probe = bt856_probe, | ||
269 | .remove = bt856_remove, | ||
270 | .id_table = bt856_id, | ||
270 | }; | 271 | }; |
272 | |||
273 | static __init int init_bt856(void) | ||
274 | { | ||
275 | return i2c_add_driver(&bt856_driver); | ||
276 | } | ||
277 | |||
278 | static __exit void exit_bt856(void) | ||
279 | { | ||
280 | i2c_del_driver(&bt856_driver); | ||
281 | } | ||
282 | |||
283 | module_init(init_bt856); | ||
284 | module_exit(exit_bt856); | ||