]> Pileus Git - ~andy/linux/commit
ACPI / Button: Fix enabling button GPEs twice
authorLan Tianyu <tianyu.lan@intel.com>
Thu, 12 Dec 2013 10:08:17 +0000 (18:08 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Dec 2013 14:07:00 +0000 (15:07 +0100)
commit8eaa29f92a66c92ade1ad663d14d975d776ef492
treea93ce49ff4c5300c5a73412f2490ae3f128ea037
parent319e2e3f63c348a9b66db4667efa73178e18b17d
ACPI / Button: Fix enabling button GPEs twice

Button GPEs have been enabled in the acpi_wake_device_init() during
boot and the button driver enables them for the second time.
Consequently, it is necessary to do

# echo disable > /sys/firmware/acpi/interrupts/gpeXXX

twice in a row to disable those GPEs via sysfs. This patch is to
remove the GPE enabling code from the button driver to avoid the
problem.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c