diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 91016049e551d16f23d28f7fd6c8dd2ccaf91c60..1a4f6da58eab4018878aab4275e1d3b6f3309b37 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);