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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
c539914dcd
commit
52fbc7796a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user