]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Use the return result of ACPI lid notifier chain correctly
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 15 Dec 2009 14:01:57 +0000 (22:01 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 06:12:35 +0000 (01:12 -0500)
commitf5733998c2844d932adf8dc76142921a93a9f10a
tree0f205e067541102085580224b22b73c2056fceca
parenta3bd51081385ae70b27b40b645963b715a972743
ACPI: Use the return result of ACPI lid notifier chain correctly

On some laptops it will return NOTIFY_OK(non-zero) when calling the ACPI LID
notifier. Then it is used as the result of ACPI LID resume function, which
will complain the following warning message in course of suspend/resume:

     >PM: Device PNP0C0D:00 failed to resume: error 1

This patch is to eliminate the above warning message.

http://bugzilla.kernel.org/show_bug.cgi?id=14782

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/button.c