summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Langsdorf <mark.langsdorf@amd.com>2009-08-11 22:15:42 +0200
committerLen Brown <len.brown@intel.com>2009-10-06 19:55:56 +0200
commit68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc (patch)
tree4595c66b958d3e1e5d8a6b648361c97c41ffbb9f
parentLinux 2.6.32-rc3 (diff)
downloadlinux-68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc.tar.xz
linux-68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc.zip
ACPI: add AC/DC notifier
Add an ACPI event notifier for AC/DC connect/disconnect events. Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/acpi/ac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index 98b9690b0159..b6ed60b57b0d 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -245,6 +245,7 @@ static void acpi_ac_notify(struct acpi_device *device, u32 event)
acpi_bus_generate_netlink_event(device->pnp.device_class,
dev_name(&device->dev), event,
(u32) ac->state);
+ acpi_notifier_call_chain(device, event, (u32) ac->state);
#ifdef CONFIG_ACPI_SYSFS_POWER
kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
#endif