Commit b4a871bc authored by Jovi Zhang's avatar Jovi Zhang Committed by Anton Vorontsov

pstore/ram: Add missing platform_device_unregister

We need to unregister platform device when module exit, this commit fixes
the issue.
Signed-off-by: default avatarJovi Zhang <bookjovi@gmail.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent 8defe599
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment