mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue