diff options
Diffstat (limited to 'drivers/media/video/ov9740.c')
-rw-r--r-- | drivers/media/video/ov9740.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/ov9740.c b/drivers/media/video/ov9740.c index d9a9f7174f7a..3eb07c22516e 100644 --- a/drivers/media/video/ov9740.c +++ b/drivers/media/video/ov9740.c | |||
@@ -998,18 +998,7 @@ static struct i2c_driver ov9740_i2c_driver = { | |||
998 | .id_table = ov9740_id, | 998 | .id_table = ov9740_id, |
999 | }; | 999 | }; |
1000 | 1000 | ||
1001 | static int __init ov9740_module_init(void) | 1001 | module_i2c_driver(ov9740_i2c_driver); |
1002 | { | ||
1003 | return i2c_add_driver(&ov9740_i2c_driver); | ||
1004 | } | ||
1005 | |||
1006 | static void __exit ov9740_module_exit(void) | ||
1007 | { | ||
1008 | i2c_del_driver(&ov9740_i2c_driver); | ||
1009 | } | ||
1010 | |||
1011 | module_init(ov9740_module_init); | ||
1012 | module_exit(ov9740_module_exit); | ||
1013 | 1002 | ||
1014 | MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV9740"); | 1003 | MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV9740"); |
1015 | MODULE_AUTHOR("Andrew Chew <achew@nvidia.com>"); | 1004 | MODULE_AUTHOR("Andrew Chew <achew@nvidia.com>"); |