public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: rtc-tile: add missing platform_device_unregister() when module exit
@ 2013-05-05  5:07 Wei Yongjun
  2013-05-07 23:28 ` Andrew Morton
  2013-05-08 18:01 ` Chris Metcalf
  0 siblings, 2 replies; 4+ messages in thread
From: Wei Yongjun @ 2013-05-05  5:07 UTC (permalink / raw)
  To: a.zummo, akpm; +Cc: yongjun_wei, rtc-linux, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 drivers/rtc/rtc-tile.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-tile.c b/drivers/rtc/rtc-tile.c
index 249b653..fc3dee9 100644
--- a/drivers/rtc/rtc-tile.c
+++ b/drivers/rtc/rtc-tile.c
@@ -146,6 +146,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);
 }
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-08 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-05  5:07 [PATCH] rtc: rtc-tile: add missing platform_device_unregister() when module exit Wei Yongjun
2013-05-07 23:28 ` Andrew Morton
2013-05-08  2:46   ` Wei Yongjun
2013-05-08 18:01 ` Chris Metcalf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox