Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197565
b: refs/heads/master
c: 7ab5252
h: refs/heads/master
i:
  197563: 2f69d10
v: v3
  • Loading branch information
Lee, Chun-Yi authored and Matthew Garrett committed May 20, 2010
1 parent c38f87f commit 974425b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ac34072bda53e889ac1c5a73ea59f42a769485a
refs/heads/master: 7ab52521f2d850e922f33e5586a47e6c83ec6f11
13 changes: 10 additions & 3 deletions trunk/drivers/platform/x86/msi-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,11 @@ static int __init msi_init(void)

fail_platform_device2:

if (load_scm_model) {
i8042_remove_filter(msi_laptop_i8042_filter);
cancel_delayed_work_sync(&msi_rfkill_work);
rfkill_cleanup();
}
platform_device_del(msipf_device);

fail_platform_device1:
Expand All @@ -878,6 +883,11 @@ static int __init msi_init(void)

static void __exit msi_cleanup(void)
{
if (load_scm_model) {
i8042_remove_filter(msi_laptop_i8042_filter);
cancel_delayed_work_sync(&msi_rfkill_work);
rfkill_cleanup();
}

sysfs_remove_group(&msipf_device->dev.kobj, &msipf_attribute_group);
if (!old_ec_model && threeg_exists)
Expand All @@ -886,9 +896,6 @@ static void __exit msi_cleanup(void)
platform_driver_unregister(&msipf_driver);
backlight_device_unregister(msibl_device);

i8042_remove_filter(msi_laptop_i8042_filter);
rfkill_cleanup();

/* Enable automatic brightness control again */
if (auto_brightness != 2)
set_auto_brightness(1);
Expand Down

0 comments on commit 974425b

Please sign in to comment.