thinkpad-acpi: silence bogus complain during rmmod
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Wed, 9 Dec 2009 01:36:25 +0000 (01:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:21 +0000 (07:41 -0700)
commit 6b30eb7d211840ba1a03f855d9e7b80a921368f2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/platform/x86/thinkpad_acpi.c

index 8194d165cec66c7a59ee8f0b7d1a03acaed2b36a..e7e3108138a0ef053f0b5e3a6d4a97d415d9eb45 100644 (file)
@@ -2190,7 +2190,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;
 }