diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-05 09:07:49 +0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-05-08 22:00:19 +0400 |
commit | 52fbc7796a6936dac4189f7ebda7ae7c2c813ad2 (patch) | |
tree | b10682fadcd1bc4c87bdd6210c97e9ca17255272 | |
parent | c539914dcd9a68c63305e055b14115a6a19578a8 (diff) | |
download | linux-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>
-rw-r--r-- | drivers/rtc/rtc-tile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-tile.c b/drivers/rtc/rtc-tile.c index 62db4841078b..35dc926a6c5a 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); } |