public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pstore: add missed platform_device_unregister
@ 2012-08-20  6:58 Jovi Zhang
  2012-08-21  1:40 ` Anton Vorontsov
  0 siblings, 1 reply; 4+ messages in thread
From: Jovi Zhang @ 2012-08-20  6:58 UTC (permalink / raw)
  To: tony.luck, Anton Vorontsov, Andrew Morton, LKML

>From 152373a6262045d19023cf45de84ad3c69316a45 Mon Sep 17 00:00:00 2001
From: Jovi Zhang <bookjovi@gmail.com>
Date: Mon, 20 Aug 2012 14:20:01 +0800
Subject: [PATCH] pstore: add missed platform_device_unregister

we need unregister platform device when module exit, add it.

Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
---
 fs/pstore/ram.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 0b311bc..adb218a 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -537,6 +537,7 @@ postcore_initcall(ramoops_init);
 static void __exit ramoops_exit(void)
 {
 	platform_driver_unregister(&ramoops_driver);
+	platform_device_unregister(dummy);
 	kfree(dummy_data);
 }
 module_exit(ramoops_exit);
-- 
1.7.9.7

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

end of thread, other threads:[~2012-08-22  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20  6:58 [PATCH] pstore: add missed platform_device_unregister Jovi Zhang
2012-08-21  1:40 ` Anton Vorontsov
2012-08-21 16:19   ` Kees Cook
2012-08-22  2:48     ` Anton Vorontsov

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