summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/i2c/ov5695.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov5695.c b/drivers/media/i2c/ov5695.c
index 43c3d8f7c732..5b236b8c0e23 100644
--- a/drivers/media/i2c/ov5695.c
+++ b/drivers/media/i2c/ov5695.c
@@ -1412,7 +1412,18 @@ static struct i2c_driver ov5695_i2c_driver = {
.id_table = ov5695_match_id,
};
-module_i2c_driver(ov5695_i2c_driver);
+static int __init sensor_mod_init(void)
+{
+ return i2c_add_driver(&ov5695_i2c_driver);
+}
+
+static void __exit sensor_mod_exit(void)
+{
+ i2c_del_driver(&ov5695_i2c_driver);
+}
+
+device_initcall_sync(sensor_mod_init);
+module_exit(sensor_mod_exit);
MODULE_DESCRIPTION("OmniVision ov5695 sensor driver");
MODULE_LICENSE("GPL v2");