summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/dell-laptop.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2010-02-09 19:03:04 (GMT)
committerMatthew Garrett <mjg@redhat.com>2010-02-25 16:50:43 (GMT)
commitfacd61d7b70d9c061f08e0b76976f7f833888a70 (patch)
treec5522fd381a3e834b45b3ffa1e9f3df31faef295 /drivers/platform/x86/dell-laptop.c
parent814cb8adbe2fb49302ac65bc31fa749143823860 (diff)
downloadlinux-fsl-qoriq-facd61d7b70d9c061f08e0b76976f7f833888a70.tar.xz
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>
Diffstat (limited to 'drivers/platform/x86/dell-laptop.c')
-rw-r--r--drivers/platform/x86/dell-laptop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 9d7e0be..b4c2190 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -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);