summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/thinkpad_acpi.c
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2009-12-09 01:36:25 +0000
committerLen Brown <len.brown@intel.com>2009-12-09 15:45:30 -0500
commit6b30eb7d211840ba1a03f855d9e7b80a921368f2 (patch)
treea3542747a90800ee07c180935fb572b106970556 /drivers/platform/x86/thinkpad_acpi.c
parent347a26860e2293b1347996876d3550499c7bb31f (diff)
downloadop-kernel-dev-6b30eb7d211840ba1a03f855d9e7b80a921368f2.zip
op-kernel-dev-6b30eb7d211840ba1a03f855d9e7b80a921368f2.tar.gz
thinkpad-acpi: silence bogus complain during rmmod
Fix this bogus warning during module shutdown, when backlight event reporting is enabled: "thinkpad_acpi: required events 0x00018000 not enabled!" Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86/thinkpad_acpi.c')
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 4406136..86418cd 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -2189,7 +2189,8 @@ static int hotkey_mask_set(u32 mask)
fwmask, hotkey_acpi_mask);
}
- hotkey_mask_warn_incomplete_mask();
+ if (tpacpi_lifecycle != TPACPI_LIFE_EXITING)
+ hotkey_mask_warn_incomplete_mask();
return rc;
}
OpenPOWER on IntegriCloud