projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c539914
)
rtc: rtc-tile: add missing platform_device_unregister() when module exit
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sun, 5 May 2013 05:07:49 +0000
(
01:07
-0400)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-tile.c
b/drivers/rtc/rtc-tile.c
index
62db484
..
35dc926
100644
(file)
--- 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);
}