mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
video: rockchip: vehicle: remove vehicle dev when exit
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com> Change-Id: I7e64cc679b40f341601fc0085d1c548b99932913
This commit is contained in:
committed by
Tao Huang
parent
02ee7a133e
commit
bea46d648b
@@ -106,12 +106,11 @@ static int __init vechile_module_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit vechile_module_exit(void)
|
||||
void vechile_module_exit(void)
|
||||
{
|
||||
misc_deregister(&vechile_dev);
|
||||
}
|
||||
|
||||
module_init(vechile_module_init);
|
||||
module_exit(vechile_module_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
@@ -487,6 +487,7 @@ VEHICLE_EXIT:
|
||||
#endif
|
||||
// msleep(1000);
|
||||
vehicle_exit_complete_notify(v);
|
||||
vechile_module_exit();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,5 +14,6 @@ void vehicle_gpio_stat_change_notify(void);
|
||||
void vehicle_cif_error_notify(int last_line);
|
||||
void vehicle_android_is_ready_notify(void);
|
||||
void vehicle_apk_state_change(char crtc[22]);
|
||||
void vechile_module_exit(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user