summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Langsdorf <mark.langsdorf@amd.com>2009-08-11 15:15:42 -0500
committerLen Brown <len.brown@intel.com>2009-10-06 13:55:56 -0400
commit68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc (patch)
tree4595c66b958d3e1e5d8a6b648361c97c41ffbb9f /drivers
parent374576a8b6f865022c0fd1ca62396889b23d66dd (diff)
downloadlinux-68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc.tar.bz2
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>
Diffstat (limited to 'drivers')
-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