projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3c1af
)
platform/chrome: unregister platform driver/device when module exit
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Wed, 27 Nov 2013 03:34:58 +0000
(11:34 +0800)
committer
Olof Johansson
<olof@lixom.net>
Wed, 27 Nov 2013 04:18:07 +0000
(20:18 -0800)
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>
drivers/platform/chrome/chromeos_laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/chrome/chromeos_laptop.c
b/drivers/platform/chrome/chromeos_laptop.c
index 446ef0f9c256b871ee53bf2a6c929f436b0d284b..7f3aad0e115c49f4c2ea85c149dace0e901620ce 100644
(file)
--- a/
drivers/platform/chrome/chromeos_laptop.c
+++ b/
drivers/platform/chrome/chromeos_laptop.c
@@
-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);