summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-27 11:34:58 +0800
committerOlof Johansson <olof@lixom.net>2013-11-26 20:18:07 -0800
commit2b8454a75b90d7cd1ac325a0baba77244733354f (patch)
treede50a783ad8d640eb69c09505914f18b9eb1b712 /drivers
parent6d3c1afe7367447c8f7d2fec7a132f723834efd1 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/chrome/chromeos_laptop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
index 446ef0f9c256..7f3aad0e115c 100644
--- 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);