misc: Fix Sony camera driver when built into the kernel
Change-Id: I6e5f50f14f2acceadfd4b234c390628fbf763c20 Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
parent
95b03f8127
commit
d9453a586d
1 changed files with 4 additions and 0 deletions
|
|
@ -3338,8 +3338,12 @@ static void __exit sony_camera_exit_module(void)
|
|||
unregister_chrdev_region(dev_id, sensor_num);
|
||||
}
|
||||
|
||||
#ifdef MODULE
|
||||
module_init(sony_camera_init_module);
|
||||
module_exit(sony_camera_exit_module);
|
||||
#else
|
||||
late_initcall(sony_camera_init_module);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("SONY camera sensor driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
Loading…
Reference in a new issue