mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-01 04:06:08 +07:00
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: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
814cb8adbe
commit
facd61d7b7
@ -474,6 +474,10 @@ static void __exit dell_exit(void)
|
||||
i8042_remove_filter(dell_laptop_i8042_filter);
|
||||
backlight_device_unregister(dell_backlight_device);
|
||||
dell_cleanup_rfkill();
|
||||
if (platform_device) {
|
||||
platform_device_del(platform_device);
|
||||
platform_driver_unregister(&platform_driver);
|
||||
}
|
||||
}
|
||||
|
||||
module_init(dell_init);
|
||||
|
Loading…
Reference in New Issue
Block a user