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 <bookjovi@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 9101604..1a4f6da 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -538,6 +538,7 @@
 static void __exit ramoops_exit(void)
 {
 	platform_driver_unregister(&ramoops_driver);
+	platform_device_unregister(dummy);
 	kfree(dummy_data);
 }
 module_exit(ramoops_exit);