ACPI button: don't try to use a non-existent lid device
commit2c907b72db4dd4e8af6dccb6e0ac122d78627b8d
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Oct 2009 21:39:46 +0000 (7 14:39 -0700)
committerLen Brown <len.brown@intel.com>
Tue, 13 Oct 2009 06:53:30 +0000 (13 02:53 -0400)
tree0a980ca3ea0020cc7145b62de382bc5ff2c81daf
parent2906206350b7e13e2047467cc29a0a2d78d71cb2
ACPI button: don't try to use a non-existent lid device

If a call comes in to check the lid state but there's no lid device
present, we should return -ENODEV.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/button.c