View | Details | Raw Unified | Return to bug 28192 | Differences between
and this patch

Collapse All | Expand All

(-)a/drivers/acpi/battery.c (+2 lines)
Lines 948-953 static int battery_notify(struct notifier_block *nb, Link Here
948
	struct acpi_battery *battery = container_of(nb, struct acpi_battery,
948
	struct acpi_battery *battery = container_of(nb, struct acpi_battery,
949
						    pm_nb);
949
						    pm_nb);
950
	switch (mode) {
950
	switch (mode) {
951
	case PM_POST_RESTORE:	
952
	case PM_POST_HIBERNATION: 
951
	case PM_POST_SUSPEND:
953
	case PM_POST_SUSPEND:
952
		sysfs_remove_battery(battery);
954
		sysfs_remove_battery(battery);
953
		sysfs_add_battery(battery);
955
		sysfs_add_battery(battery);

Return to bug 28192