Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ exit_driver_unregister:
 */
static void __exit tile_rtc_driver_exit(void)
{
	platform_device_unregister(tile_rtc_platform_device);
	platform_driver_unregister(&tile_rtc_platform_driver);
}