thinkpad-acpi: acpi_evalf fixes
commit96efcc722bba733cd3890b026c440cc630951894
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:51:03 +0000 (26 22:51 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:51:03 +0000 (26 22:51 -0300)
tree0b0faeaddfdeeba9d199c607c36095b8c50d53f7
parentdadd4a5a5936a7a2fb0cf1b96a719d6e7bb4f806
thinkpad-acpi: acpi_evalf fixes

Use acpi_format_exception() in acpi_evalf() instead of logging numeric
errors.

Also, when ACPICA returns an error, we should not be touching the return
object, as it is invalid.  In debug mode, acpi_evalf() callers would
printk the returned crap (but fortunately, not use it).

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/platform/x86/thinkpad_acpi.c