]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerLen Brown <len.brown@intel.com>
Wed, 9 Dec 2009 20:45:30 +0000 (15:45 -0500)
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>
drivers/platform/x86/thinkpad_acpi.c

index 44061367a10d18e6477a597a5f523aa70aeb38e0..86418cd3e59df2cdd8d46d3febc241acd864eb79 100644 (file)
@@ -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;
 }