diff options
Diffstat (limited to 'drivers/media/video/ov9640.c')
-rw-r--r-- | drivers/media/video/ov9640.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/ov9640.c b/drivers/media/video/ov9640.c index a4f99797eb56..23412debb36b 100644 --- a/drivers/media/video/ov9640.c +++ b/drivers/media/video/ov9640.c | |||
@@ -738,18 +738,7 @@ static struct i2c_driver ov9640_i2c_driver = { | |||
738 | .id_table = ov9640_id, | 738 | .id_table = ov9640_id, |
739 | }; | 739 | }; |
740 | 740 | ||
741 | static int __init ov9640_module_init(void) | 741 | module_i2c_driver(ov9640_i2c_driver); |
742 | { | ||
743 | return i2c_add_driver(&ov9640_i2c_driver); | ||
744 | } | ||
745 | |||
746 | static void __exit ov9640_module_exit(void) | ||
747 | { | ||
748 | i2c_del_driver(&ov9640_i2c_driver); | ||
749 | } | ||
750 | |||
751 | module_init(ov9640_module_init); | ||
752 | module_exit(ov9640_module_exit); | ||
753 | 742 | ||
754 | MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV96xx"); | 743 | MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV96xx"); |
755 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | 744 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); |