diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-26 22:34:58 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-11-26 23:18:07 -0500 |
commit | 2b8454a75b90d7cd1ac325a0baba77244733354f (patch) | |
tree | de50a783ad8d640eb69c09505914f18b9eb1b712 | |
parent | 6d3c1afe7367447c8f7d2fec7a132f723834efd1 (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>
-rw-r--r-- | drivers/platform/chrome/chromeos_laptop.c | 3 |
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) | |||
511 | i2c_unregister_device(tp); | 511 | i2c_unregister_device(tp); |
512 | if (ts) | 512 | if (ts) |
513 | i2c_unregister_device(ts); | 513 | i2c_unregister_device(ts); |
514 | |||
515 | platform_device_unregister(cros_platform_device); | ||
516 | platform_driver_unregister(&cros_platform_driver); | ||
514 | } | 517 | } |
515 | 518 | ||
516 | module_init(chromeos_laptop_init); | 519 | module_init(chromeos_laptop_init); |