]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:03:30 +0000 (15:03 -0800)
commit8aafd7d4acb527c3dfd95d24af190528cc58326b
tree4dcfc61d171480336c5be53ee6a21b69d8410354
parent3872bf59ad0d88c81d7fb70ac86a5fc2f8aa6d34
ACPI: Use the return result of ACPI lid notifier chain correctly

commit 13c199c0d0cf78b27592991129fb8cbcfc5164de upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/button.c