summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-05 05:07:49 (GMT)
committerChris Metcalf <cmetcalf@tilera.com>2013-05-08 18:00:19 (GMT)
commit52fbc7796a6936dac4189f7ebda7ae7c2c813ad2 (patch)
treeb10682fadcd1bc4c87bdd6210c97e9ca17255272 /drivers
parentc539914dcd9a68c63305e055b14115a6a19578a8 (diff)
downloadlinux-fsl-qoriq-52fbc7796a6936dac4189f7ebda7ae7c2c813ad2.tar.xz
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')
-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 62db484..35dc926 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);
}