mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
media: i2c: ov5695: initialize sensor driver after io_domain
Change-Id: Ia0d754d941ba9bda874efe787a985f00cf1be779 Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user