diff options
Diffstat (limited to 'drivers/acpi/battery.c')
-rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 5de735ffc3e6..6ce93306dd37 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -108,7 +108,6 @@ struct acpi_battery_trips { | |||
108 | }; | 108 | }; |
109 | 109 | ||
110 | struct acpi_battery { | 110 | struct acpi_battery { |
111 | acpi_handle handle; | ||
112 | struct acpi_device * device; | 111 | struct acpi_device * device; |
113 | struct acpi_battery_flags flags; | 112 | struct acpi_battery_flags flags; |
114 | struct acpi_battery_trips trips; | 113 | struct acpi_battery_trips trips; |
@@ -693,7 +692,6 @@ static int acpi_battery_add(struct acpi_device *device) | |||
693 | return -ENOMEM; | 692 | return -ENOMEM; |
694 | memset(battery, 0, sizeof(struct acpi_battery)); | 693 | memset(battery, 0, sizeof(struct acpi_battery)); |
695 | 694 | ||
696 | battery->handle = device->handle; | ||
697 | battery->device = device; | 695 | battery->device = device; |
698 | strcpy(acpi_device_name(device), ACPI_BATTERY_DEVICE_NAME); | 696 | strcpy(acpi_device_name(device), ACPI_BATTERY_DEVICE_NAME); |
699 | strcpy(acpi_device_class(device), ACPI_BATTERY_CLASS); | 697 | strcpy(acpi_device_class(device), ACPI_BATTERY_CLASS); |