Commit 2b8454a7 authored by Wei Yongjun's avatar Wei Yongjun Committed by Olof Johansson

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 6d3c1afe
...@@ -511,6 +511,9 @@ static void __exit chromeos_laptop_exit(void) ...@@ -511,6 +511,9 @@ static void __exit chromeos_laptop_exit(void)
i2c_unregister_device(tp); i2c_unregister_device(tp);
if (ts) if (ts)
i2c_unregister_device(ts); i2c_unregister_device(ts);
platform_device_unregister(cros_platform_device);
platform_driver_unregister(&cros_platform_driver);
} }
module_init(chromeos_laptop_init); module_init(chromeos_laptop_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment