diff options
Diffstat (limited to 'drivers/media/video/mt9m001.c')
-rw-r--r-- | drivers/media/video/mt9m001.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/video/mt9m001.c b/drivers/media/video/mt9m001.c index 3fb5f63df1e..ba09826ddf4 100644 --- a/drivers/media/video/mt9m001.c +++ b/drivers/media/video/mt9m001.c | |||
@@ -620,7 +620,8 @@ static void mt9m001_video_remove(struct soc_camera_device *icd) | |||
620 | soc_camera_video_stop(&mt9m001->icd); | 620 | soc_camera_video_stop(&mt9m001->icd); |
621 | } | 621 | } |
622 | 622 | ||
623 | static int mt9m001_probe(struct i2c_client *client) | 623 | static int mt9m001_probe(struct i2c_client *client, |
624 | const struct i2c_device_id *did) | ||
624 | { | 625 | { |
625 | struct mt9m001 *mt9m001; | 626 | struct mt9m001 *mt9m001; |
626 | struct soc_camera_device *icd; | 627 | struct soc_camera_device *icd; |
@@ -696,12 +697,19 @@ static int mt9m001_remove(struct i2c_client *client) | |||
696 | return 0; | 697 | return 0; |
697 | } | 698 | } |
698 | 699 | ||
700 | static const struct i2c_device_id mt9m001_id[] = { | ||
701 | { "mt9m001", 0 }, | ||
702 | { } | ||
703 | }; | ||
704 | MODULE_DEVICE_TABLE(i2c, mt9m001_id); | ||
705 | |||
699 | static struct i2c_driver mt9m001_i2c_driver = { | 706 | static struct i2c_driver mt9m001_i2c_driver = { |
700 | .driver = { | 707 | .driver = { |
701 | .name = "mt9m001", | 708 | .name = "mt9m001", |
702 | }, | 709 | }, |
703 | .probe = mt9m001_probe, | 710 | .probe = mt9m001_probe, |
704 | .remove = mt9m001_remove, | 711 | .remove = mt9m001_remove, |
712 | .id_table = mt9m001_id, | ||
705 | }; | 713 | }; |
706 | 714 | ||
707 | static int __init mt9m001_mod_init(void) | 715 | static int __init mt9m001_mod_init(void) |