]> git.baikalelectronics.ru Git - kernel.git/commit
sony-laptop: fix bogus error message display on resume
authorMattia Dongili <malattia@linux.it>
Sun, 12 Apr 2009 11:26:30 +0000 (11:26 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 24 Apr 2009 03:57:34 +0000 (23:57 -0400)
commitd164f8b68264b83c0350be388ef56db1eec02cc2
tree958a8409fc348a48ac9185981c5b66bde6e53897
parent9dd033839cab9d44ebeee801dd4febb1399c0ec3
sony-laptop: fix bogus error message display on resume

sony_backlight_update_status returns 0 on success -1 on failure (i.e.: the
return value from acpi_callsetfunc. The return value in the resume path
was broken and thus always displaying a bogus warning about not being able
to restore the brightness level.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/sony-laptop.c