diff options
Diffstat (limited to 'drivers/media/video/vpx3220.c')
-rw-r--r-- | drivers/media/video/vpx3220.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/vpx3220.c b/drivers/media/video/vpx3220.c index 77ebcea7c3da..91a01b3cdf8c 100644 --- a/drivers/media/video/vpx3220.c +++ b/drivers/media/video/vpx3220.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/videodev2.h> | 28 | #include <linux/videodev2.h> |
29 | #include <media/v4l2-device.h> | 29 | #include <media/v4l2-device.h> |
30 | #include <media/v4l2-chip-ident.h> | 30 | #include <media/v4l2-chip-ident.h> |
31 | #include <media/v4l2-i2c-drv.h> | ||
32 | 31 | ||
33 | MODULE_DESCRIPTION("vpx3220a/vpx3216b/vpx3214c video decoder driver"); | 32 | MODULE_DESCRIPTION("vpx3220a/vpx3216b/vpx3214c video decoder driver"); |
34 | MODULE_AUTHOR("Laurent Pinchart"); | 33 | MODULE_AUTHOR("Laurent Pinchart"); |
@@ -614,9 +613,25 @@ static const struct i2c_device_id vpx3220_id[] = { | |||
614 | }; | 613 | }; |
615 | MODULE_DEVICE_TABLE(i2c, vpx3220_id); | 614 | MODULE_DEVICE_TABLE(i2c, vpx3220_id); |
616 | 615 | ||
617 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 616 | static struct i2c_driver vpx3220_driver = { |
618 | .name = "vpx3220", | 617 | .driver = { |
619 | .probe = vpx3220_probe, | 618 | .owner = THIS_MODULE, |
620 | .remove = vpx3220_remove, | 619 | .name = "vpx3220", |
621 | .id_table = vpx3220_id, | 620 | }, |
621 | .probe = vpx3220_probe, | ||
622 | .remove = vpx3220_remove, | ||
623 | .id_table = vpx3220_id, | ||
622 | }; | 624 | }; |
625 | |||
626 | static __init int init_vpx3220(void) | ||
627 | { | ||
628 | return i2c_add_driver(&vpx3220_driver); | ||
629 | } | ||
630 | |||
631 | static __exit void exit_vpx3220(void) | ||
632 | { | ||
633 | i2c_del_driver(&vpx3220_driver); | ||
634 | } | ||
635 | |||
636 | module_init(init_vpx3220); | ||
637 | module_exit(exit_vpx3220); | ||