ACPI: WMI: Clean up handling of spec violating data blocks
commita527f2d7fe58ce95bfec998f3dc6f658c777a2f2
authorCarlos Corbacho <carlos@strangeworlds.co.uk>
Sun, 24 Feb 2008 13:34:34 +0000 (24 13:34 +0000)
committerLen Brown <len.brown@intel.com>
Tue, 11 Mar 2008 21:59:05 +0000 (11 17:59 -0400)
treec55c8f3366ba0f955619a48e0f0a88ff070247bd
parent9b963c40306ba6967650dce99f4e823f1da49a60
ACPI: WMI: Clean up handling of spec violating data blocks

Acer violate the ACPI-WMI spec by declaring some of their data blocks as
expensive, but with no corresponding WCxx method. There is already some
workaround code in to handle the initial WCxx call (we just ignore a
failure here); but we need to properly check if the second, "clean up",
WCxx call is actually needed or not, rather than fail simply because it
isn't there.

Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/wmi.c