thinkpad-acpi: acpi_evalf fixes
commit7e790d9c6a28e4eff19c31952b880db0b99e2d35
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 11 Apr 2010 19:55:12 +0000 (11 16:55 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 27 Apr 2010 04:03:09 +0000 (27 01:03 -0300)
treee090b27cfcbc1631182b060ec9da29d3caef5bdf
parent2ab5f8fb59b6777e0e270c7b9b31ba18ff628b7a
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