rtc: rtc-tile: add missing platform_device_unregister() when module exit
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 5 May 2013 05:07:49 +0000 (01:07 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 8 May 2013 18:00:19 +0000 (14:00 -0400)
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>
drivers/rtc/rtc-tile.c

index 62db484..35dc926 100644 (file)
@@ -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);
 }