projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
814cb8a
)
dell-laptop: Fix platform device unregistration
author
Matthew Garrett
<mjg@redhat.com>
Tue, 9 Feb 2010 19:03:04 +0000
(14:03 -0500)
committer
Matthew Garrett
<mjg@redhat.com>
Thu, 25 Feb 2010 16:50:43 +0000
(11:50 -0500)
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>
drivers/platform/x86/dell-laptop.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/dell-laptop.c
b/drivers/platform/x86/dell-laptop.c
index 9d7e0be6bb0fdd66d1c343afad6a780a5d7680a4..b4c2190e89f97f8e2466f45e60b3cbe01965c2bd 100644
(file)
--- 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);