From: Alexander Mezin Date: Tue, 11 Mar 2014 17:58:47 +0000 (+0700) Subject: ACPI / battery: call ACPI notifier chain in acpi_battery_notify X-Git-Tag: v3.15-rc1~151^2~8^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=411e0f77bdf79cdb80b61ab78acc6513c9ff8f97;p=karo-tx-linux.git ACPI / battery: call ACPI notifier chain in acpi_battery_notify Allow other drivers to subscribe to battery status notifications. Just like AC driver does. Signed-off-by: Alexander Mezin Acked-by: Lan Tianyu Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index bfec70f12faa..9a2c63b20050 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -734,6 +734,7 @@ static void acpi_battery_notify(struct acpi_device *device, u32 event) acpi_bus_generate_netlink_event(device->pnp.device_class, dev_name(&device->dev), event, acpi_battery_present(battery)); + acpi_notifier_call_chain(device, event, acpi_battery_present(battery)); /* acpi_battery_update could remove power_supply object */ if (old && battery->bat.dev) power_supply_changed(&battery->bat);