diff options
Diffstat (limited to 'drivers/media/video/mt9p031.c')
-rw-r--r-- | drivers/media/video/mt9p031.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c index 93c3ec7426e8..dde26105aac7 100644 --- a/drivers/media/video/mt9p031.c +++ b/drivers/media/video/mt9p031.c | |||
@@ -945,18 +945,7 @@ static struct i2c_driver mt9p031_i2c_driver = { | |||
945 | .id_table = mt9p031_id, | 945 | .id_table = mt9p031_id, |
946 | }; | 946 | }; |
947 | 947 | ||
948 | static int __init mt9p031_mod_init(void) | 948 | module_i2c_driver(mt9p031_i2c_driver); |
949 | { | ||
950 | return i2c_add_driver(&mt9p031_i2c_driver); | ||
951 | } | ||
952 | |||
953 | static void __exit mt9p031_mod_exit(void) | ||
954 | { | ||
955 | i2c_del_driver(&mt9p031_i2c_driver); | ||
956 | } | ||
957 | |||
958 | module_init(mt9p031_mod_init); | ||
959 | module_exit(mt9p031_mod_exit); | ||
960 | 949 | ||
961 | MODULE_DESCRIPTION("Aptina MT9P031 Camera driver"); | 950 | MODULE_DESCRIPTION("Aptina MT9P031 Camera driver"); |
962 | MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>"); | 951 | MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>"); |