thinkpad-acpi: acpi_evalf fixes
commite1f083401bd39682456a29b21ceabcd232407ab1
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Sep 2011 18:49:27 +0000 (3 15:49 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 13 Nov 2011 17:11:35 +0000 (13 15:11 -0200)
treee92f0f139670d5f110a2b16676a816f7da2ea886
parenta3c1524d6155f69693b3f6e55f3b72f2639650b9
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