diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:48:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:48:31 -0400 |
commit | b57ab7632b8fc1eef139bbbb7a89002be61f99e1 (patch) | |
tree | 19d4eeea0dbf721312c4e33a423ed29ff70aff88 /drivers/media/video/mt9m001.c | |
parent | f12c03722045882a50c270f6332cf2c7b16a83d2 (diff) | |
parent | 3760f736716f74bdc62a4ba5406934338da93eb2 (diff) |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
i2c: Convert most new-style drivers to use module aliasing
i2c: Add support for device alias names
i2c-amd756-s4882: Fix an error path
i2c: Drop unused RTC driver IDs
i2c/tps65010: Add missing intialization of client data
i2c-sis5595: Minor cleanups in sis5595_access
i2c-piix4: Minor cleanups
i2c: Spelling fix (successful)
i2c-stub: No newline in parameter description
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 3fb5f63df1e6..ba09826ddf48 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) |