diff options
| author | Patrick Mochel <mochel@linux.intel.com> | 2006-05-19 16:54:49 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2006-06-30 02:50:46 -0400 |
| commit | 39cb61e26771891f843cb433ee6febd9159bce73 (patch) | |
| tree | eff446b42c8dc29bfe25ab4f773e65ed5afe8bfa | |
| parent | 9453ece92688fedd7755d2ea54b2efe88822a91b (diff) | |
ACPI: battery: Remove unneeded acpi_handle from driver.
Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
| -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); |
