aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt819.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bt819.c')
-rw-r--r--drivers/media/video/bt819.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/drivers/media/video/bt819.c b/drivers/media/video/bt819.c
index 770cb9accf81..c38300fc0b1d 100644
--- a/drivers/media/video/bt819.c
+++ b/drivers/media/video/bt819.c
@@ -33,12 +33,10 @@
33#include <linux/ioctl.h> 33#include <linux/ioctl.h>
34#include <linux/delay.h> 34#include <linux/delay.h>
35#include <linux/i2c.h> 35#include <linux/i2c.h>
36#include <linux/i2c-id.h>
37#include <linux/videodev2.h> 36#include <linux/videodev2.h>
38#include <linux/slab.h> 37#include <linux/slab.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#include <media/bt819.h> 40#include <media/bt819.h>
43 41
44MODULE_DESCRIPTION("Brooktree-819 video decoder driver"); 42MODULE_DESCRIPTION("Brooktree-819 video decoder driver");
@@ -537,9 +535,25 @@ static const struct i2c_device_id bt819_id[] = {
537}; 535};
538MODULE_DEVICE_TABLE(i2c, bt819_id); 536MODULE_DEVICE_TABLE(i2c, bt819_id);
539 537
540static struct v4l2_i2c_driver_data v4l2_i2c_data = { 538static struct i2c_driver bt819_driver = {
541 .name = "bt819", 539 .driver = {
542 .probe = bt819_probe, 540 .owner = THIS_MODULE,
543 .remove = bt819_remove, 541 .name = "bt819",
544 .id_table = bt819_id, 542 },
543 .probe = bt819_probe,
544 .remove = bt819_remove,
545 .id_table = bt819_id,
545}; 546};
547
548static __init int init_bt819(void)
549{
550 return i2c_add_driver(&bt819_driver);
551}
552
553static __exit void exit_bt819(void)
554{
555 i2c_del_driver(&bt819_driver);
556}
557
558module_init(init_bt819);
559module_exit(exit_bt819);