Commit facd61d7 authored by Matthew Garrett's avatar Matthew Garrett

dell-laptop: Fix platform device unregistration

dell-laptop currently fails to clean up its platform device correctly.
Make sure that it's unregistered.
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 814cb8ad
...@@ -474,6 +474,10 @@ static void __exit dell_exit(void) ...@@ -474,6 +474,10 @@ static void __exit dell_exit(void)
i8042_remove_filter(dell_laptop_i8042_filter); i8042_remove_filter(dell_laptop_i8042_filter);
backlight_device_unregister(dell_backlight_device); backlight_device_unregister(dell_backlight_device);
dell_cleanup_rfkill(); dell_cleanup_rfkill();
if (platform_device) {
platform_device_del(platform_device);
platform_driver_unregister(&platform_driver);
}
} }
module_init(dell_init); module_init(dell_init);
......
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