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 bb37ec80f27..80e07794ac8 100644 --- a/drivers/media/video/ov5642.c +++ b/drivers/media/video/ov5642.c @@ -1068,18 +1068,7 @@ static struct i2c_driver ov5642_i2c_driver = { .id_table = ov5642_id, }; -static int __init ov5642_mod_init(void) -{ - return i2c_add_driver(&ov5642_i2c_driver); -} - -static void __exit ov5642_mod_exit(void) -{ - i2c_del_driver(&ov5642_i2c_driver); -} - -module_init(ov5642_mod_init); -module_exit(ov5642_mod_exit); +module_i2c_driver(ov5642_i2c_driver); MODULE_DESCRIPTION("Omnivision OV5642 Camera driver"); MODULE_AUTHOR("Bastian Hecht <hechtb@gmail.com>"); |