mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
platform/chrome: unregister platform driver/device when module exit
We have registered platform driver and device when module init, and need unregister them when module exit. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
parent
6d3c1afe73
commit
2b8454a75b
1 changed files with 3 additions and 0 deletions
|
|
@ -511,6 +511,9 @@ static void __exit chromeos_laptop_exit(void)
|
|||
i2c_unregister_device(tp);
|
||||
if (ts)
|
||||
i2c_unregister_device(ts);
|
||||
|
||||
platform_device_unregister(cros_platform_device);
|
||||
platform_driver_unregister(&cros_platform_driver);
|
||||
}
|
||||
|
||||
module_init(chromeos_laptop_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue