Commit 52fbc779 authored by Wei Yongjun's avatar Wei Yongjun Committed by Chris Metcalf

rtc: rtc-tile: add missing platform_device_unregister() when module exit

We have registered platform device when module init, and
need unregister it when module exit.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent c539914d
......@@ -151,6 +151,7 @@ static int __init tile_rtc_driver_init(void)
*/
static void __exit tile_rtc_driver_exit(void)
{
platform_device_unregister(tile_rtc_platform_device);
platform_driver_unregister(&tile_rtc_platform_driver);
}
......
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