diff options
author | Mark Langsdorf <mark.langsdorf@amd.com> | 2009-08-11 15:15:42 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-10-06 13:55:56 -0400 |
commit | 68b92b567c0c5e6f4d0b264d438f97ee5ccbdccc (patch) | |
tree | 4595c66b958d3e1e5d8a6b648361c97c41ffbb9f /drivers/acpi/ac.c | |
parent | 374576a8b6f865022c0fd1ca62396889b23d66dd (diff) |
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/acpi/ac.c')
-rw-r--r-- | drivers/acpi/ac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 98b9690b015..b6ed60b57b0 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 |