diff options
Diffstat (limited to 'drivers/media/video/ks0127.c')
-rw-r--r-- | drivers/media/video/ks0127.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/ks0127.c b/drivers/media/video/ks0127.c index 94734828053b..afa91182b448 100644 --- a/drivers/media/video/ks0127.c +++ b/drivers/media/video/ks0127.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <linux/slab.h> | 43 | #include <linux/slab.h> |
44 | #include <media/v4l2-device.h> | 44 | #include <media/v4l2-device.h> |
45 | #include <media/v4l2-chip-ident.h> | 45 | #include <media/v4l2-chip-ident.h> |
46 | #include <media/v4l2-i2c-drv.h> | ||
47 | #include "ks0127.h" | 46 | #include "ks0127.h" |
48 | 47 | ||
49 | MODULE_DESCRIPTION("KS0127 video decoder driver"); | 48 | MODULE_DESCRIPTION("KS0127 video decoder driver"); |
@@ -712,9 +711,25 @@ static const struct i2c_device_id ks0127_id[] = { | |||
712 | }; | 711 | }; |
713 | MODULE_DEVICE_TABLE(i2c, ks0127_id); | 712 | MODULE_DEVICE_TABLE(i2c, ks0127_id); |
714 | 713 | ||
715 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 714 | static struct i2c_driver ks0127_driver = { |
716 | .name = "ks0127", | 715 | .driver = { |
717 | .probe = ks0127_probe, | 716 | .owner = THIS_MODULE, |
718 | .remove = ks0127_remove, | 717 | .name = "ks0127", |
719 | .id_table = ks0127_id, | 718 | }, |
719 | .probe = ks0127_probe, | ||
720 | .remove = ks0127_remove, | ||
721 | .id_table = ks0127_id, | ||
720 | }; | 722 | }; |
723 | |||
724 | static __init int init_ks0127(void) | ||
725 | { | ||
726 | return i2c_add_driver(&ks0127_driver); | ||
727 | } | ||
728 | |||
729 | static __exit void exit_ks0127(void) | ||
730 | { | ||
731 | i2c_del_driver(&ks0127_driver); | ||
732 | } | ||
733 | |||
734 | module_init(init_ks0127); | ||
735 | module_exit(exit_ks0127); | ||