summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-05 01:07:49 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-05-08 14:00:19 -0400
commit52fbc7796a6936dac4189f7ebda7ae7c2c813ad2 (patch)
treeb10682fadcd1bc4c87bdd6210c97e9ca17255272 /drivers/rtc
parentc539914dcd9a68c63305e055b14115a6a19578a8 (diff)
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-tile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-tile.c b/drivers/rtc/rtc-tile.c
index 62db4841078..35dc926a6c5 100644
--- a/drivers/rtc/rtc-tile.c
+++ b/drivers/rtc/rtc-tile.c
@@ -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);
}