From: Jovi Zhang Date: Mon, 20 Aug 2012 06:58:26 +0000 (+0800) Subject: pstore/ram: Add missing platform_device_unregister X-Git-Tag: next-20120823~69^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17525484c1caf754c5e306ff274dbcb760cd828b;p=karo-tx-linux.git pstore/ram: Add missing platform_device_unregister We need to unregister platform device when module exit, this commit fixes the issue. Signed-off-by: Jovi Zhang Acked-by: Kees Cook Signed-off-by: Anton Vorontsov --- diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 91016049e551..2e906b33cd11 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_device_unregister(dummy); platform_driver_unregister(&ramoops_driver); kfree(dummy_data); }