thinkpad-acpi: acpi_evalf fixes
commitd0bf9f24a1d0d703841292489e0d32af7409b084
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Sep 2010 01:03:10 +0000 (17 22:03 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Sep 2010 01:03:10 +0000 (17 22:03 -0300)
treedce9bac39f1fc5601075275ad05685ccd709b047
parent15233b0053a7db8b70e162e81fad1f9969360c51
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