ACPI: power: Remove unneeded acpi_handle from driver.
Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
432bfaba7d
commit
1474720405
|
@ -70,7 +70,6 @@ static struct acpi_driver acpi_power_driver = {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct acpi_power_resource {
|
struct acpi_power_resource {
|
||||||
acpi_handle handle;
|
|
||||||
struct acpi_device * device;
|
struct acpi_device * device;
|
||||||
acpi_bus_id name;
|
acpi_bus_id name;
|
||||||
u32 system_level;
|
u32 system_level;
|
||||||
|
@ -541,7 +540,6 @@ static int acpi_power_add(struct acpi_device *device)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
memset(resource, 0, sizeof(struct acpi_power_resource));
|
memset(resource, 0, sizeof(struct acpi_power_resource));
|
||||||
|
|
||||||
resource->handle = device->handle;
|
|
||||||
resource->device = device;
|
resource->device = device;
|
||||||
strcpy(resource->name, device->pnp.bus_id);
|
strcpy(resource->name, device->pnp.bus_id);
|
||||||
strcpy(acpi_device_name(device), ACPI_POWER_DEVICE_NAME);
|
strcpy(acpi_device_name(device), ACPI_POWER_DEVICE_NAME);
|
||||||
|
|
Loading…
Reference in New Issue