Skip to content

Commit

Permalink
ACPI / thermal: Remove the unused lock of struct acpi_thermal
Browse files Browse the repository at this point in the history
The acpi_thermal->lock now just is initialized when a thermal zone
device is added and destroyed when the thermal zone is removed.
It is never used in any other places, so remove it.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Lan Tianyu authored and Rafael J. Wysocki committed Aug 14, 2013
1 parent f3ce717 commit 8a6036b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ struct acpi_thermal {
struct thermal_zone_device *thermal_zone;
int tz_enabled;
int kelvin_offset;
struct mutex lock;
};

/* --------------------------------------------------------------------------
Expand Down Expand Up @@ -1098,8 +1097,6 @@ static int acpi_thermal_add(struct acpi_device *device)
strcpy(acpi_device_name(device), ACPI_THERMAL_DEVICE_NAME);
strcpy(acpi_device_class(device), ACPI_THERMAL_CLASS);
device->driver_data = tz;
mutex_init(&tz->lock);


result = acpi_thermal_get_info(tz);
if (result)
Expand Down Expand Up @@ -1132,7 +1129,6 @@ static int acpi_thermal_remove(struct acpi_device *device)
tz = acpi_driver_data(device);

acpi_thermal_unregister_thermal_zone(tz);
mutex_destroy(&tz->lock);
kfree(tz);
return 0;
}
Expand Down

0 comments on commit 8a6036b

Please sign in to comment.