diff options
Diffstat (limited to 'drivers/media/video/ov5642.c')
-rw-r--r-- | drivers/media/video/ov5642.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/ov5642.c b/drivers/media/video/ov5642.c index bb37ec80f274..80e07794ac8e 100644 --- a/drivers/media/video/ov5642.c +++ b/drivers/media/video/ov5642.c | |||
@@ -1068,18 +1068,7 @@ static struct i2c_driver ov5642_i2c_driver = { | |||
1068 | .id_table = ov5642_id, | 1068 | .id_table = ov5642_id, |
1069 | }; | 1069 | }; |
1070 | 1070 | ||
1071 | static int __init ov5642_mod_init(void) | 1071 | module_i2c_driver(ov5642_i2c_driver); |
1072 | { | ||
1073 | return i2c_add_driver(&ov5642_i2c_driver); | ||
1074 | } | ||
1075 | |||
1076 | static void __exit ov5642_mod_exit(void) | ||
1077 | { | ||
1078 | i2c_del_driver(&ov5642_i2c_driver); | ||
1079 | } | ||
1080 | |||
1081 | module_init(ov5642_mod_init); | ||
1082 | module_exit(ov5642_mod_exit); | ||
1083 | 1072 | ||
1084 | MODULE_DESCRIPTION("Omnivision OV5642 Camera driver"); | 1073 | MODULE_DESCRIPTION("Omnivision OV5642 Camera driver"); |
1085 | MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>"); | 1074 | MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>"); |