diff options
Diffstat (limited to 'drivers/media/video/mt9v022.c')
-rw-r--r-- | drivers/media/video/mt9v022.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c index d4b9e2744343..d1391ac55096 100644 --- a/drivers/media/video/mt9v022.c +++ b/drivers/media/video/mt9v022.c | |||
@@ -452,7 +452,7 @@ static int mt9v022_set_register(struct soc_camera_device *icd, | |||
452 | } | 452 | } |
453 | #endif | 453 | #endif |
454 | 454 | ||
455 | const struct v4l2_queryctrl mt9v022_controls[] = { | 455 | static const struct v4l2_queryctrl mt9v022_controls[] = { |
456 | { | 456 | { |
457 | .id = V4L2_CID_VFLIP, | 457 | .id = V4L2_CID_VFLIP, |
458 | .type = V4L2_CTRL_TYPE_BOOLEAN, | 458 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
@@ -745,7 +745,8 @@ static void mt9v022_video_remove(struct soc_camera_device *icd) | |||
745 | soc_camera_video_stop(&mt9v022->icd); | 745 | soc_camera_video_stop(&mt9v022->icd); |
746 | } | 746 | } |
747 | 747 | ||
748 | static int mt9v022_probe(struct i2c_client *client) | 748 | static int mt9v022_probe(struct i2c_client *client, |
749 | const struct i2c_device_id *did) | ||
749 | { | 750 | { |
750 | struct mt9v022 *mt9v022; | 751 | struct mt9v022 *mt9v022; |
751 | struct soc_camera_device *icd; | 752 | struct soc_camera_device *icd; |
@@ -818,12 +819,19 @@ static int mt9v022_remove(struct i2c_client *client) | |||
818 | return 0; | 819 | return 0; |
819 | } | 820 | } |
820 | 821 | ||
822 | static const struct i2c_device_id mt9v022_id[] = { | ||
823 | { "mt9v022", 0 }, | ||
824 | { } | ||
825 | }; | ||
826 | MODULE_DEVICE_TABLE(i2c, mt9v022_id); | ||
827 | |||
821 | static struct i2c_driver mt9v022_i2c_driver = { | 828 | static struct i2c_driver mt9v022_i2c_driver = { |
822 | .driver = { | 829 | .driver = { |
823 | .name = "mt9v022", | 830 | .name = "mt9v022", |
824 | }, | 831 | }, |
825 | .probe = mt9v022_probe, | 832 | .probe = mt9v022_probe, |
826 | .remove = mt9v022_remove, | 833 | .remove = mt9v022_remove, |
834 | .id_table = mt9v022_id, | ||
827 | }; | 835 | }; |
828 | 836 | ||
829 | static int __init mt9v022_mod_init(void) | 837 | static int __init mt9v022_mod_init(void) |