From: Jovi Zhang Date: Mon, 20 Aug 2012 06:58:26 +0000 (+0800) Subject: pstore/ram: Add missing platform_device_unregister X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b4a871bce619dc5ca03cc6c78e1c467ceacb8e7e;p=linux-beck.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..1a4f6da58eab 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -538,6 +538,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);