thinkpad-acpi: acpi_evalf fixes
commit37b4e7124f253045b6ed95b3c1c558c0e5fa5379
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:52:26 +0000 (26 22:52 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 27 May 2011 01:52:26 +0000 (26 22:52 -0300)
treec90b58384e5aac67899995d41360321156045ad4
parentf07c9fafae248d8c19d351bb7740b76ef4067c99
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