From: Bjorn Helgaas Date: Thu, 30 Apr 2009 15:35:58 +0000 (-0600) Subject: ACPI: asus-acpi: use .notify method instead of installing handler directly X-Git-Tag: v2.6.31-rc1~12^2~8^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352fa202c3320ac4844cd38fa72c7a91d7c4cfea;p=pandora-kernel.git ACPI: asus-acpi: use .notify method instead of installing handler directly This patch adds a .notify() method. The presence of .notify() causes Linux/ACPI to manage event handlers and notify handlers on our behalf, so we don't have to install and remove them ourselves. This driver relies on seeing system notify events, not device-specific ones (because it used ACPI_SYSTEM_NOTIFY). We use the ACPI_DRIVER_ALL_NOTIFY_EVENTS driver flag to request all events, then just ignore any device events we get. Signed-off-by: Bjorn Helgaas CC: Corentin Chary CC: Karol Kozimor CC: acpi4asus-user@lists.sourceforge.net Signed-off-by: Len Brown --- Reading git-diff-tree failed