Commit 8a6036b92620a4ea0a1285d5c134ac9610ff4b32

Authored by Lan Tianyu
Committed by Rafael J. Wysocki
1 parent f3ce717e60

ACPI / thermal: Remove the unused lock of struct acpi_thermal

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>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

drivers/acpi/thermal.c
... ... @@ -190,7 +190,6 @@
190 190 struct thermal_zone_device *thermal_zone;
191 191 int tz_enabled;
192 192 int kelvin_offset;
193   - struct mutex lock;
194 193 };
195 194  
196 195 /* --------------------------------------------------------------------------
197 196  
... ... @@ -1098,9 +1097,7 @@
1098 1097 strcpy(acpi_device_name(device), ACPI_THERMAL_DEVICE_NAME);
1099 1098 strcpy(acpi_device_class(device), ACPI_THERMAL_CLASS);
1100 1099 device->driver_data = tz;
1101   - mutex_init(&tz->lock);
1102 1100  
1103   -
1104 1101 result = acpi_thermal_get_info(tz);
1105 1102 if (result)
1106 1103 goto free_memory;
... ... @@ -1132,7 +1129,6 @@
1132 1129 tz = acpi_driver_data(device);
1133 1130  
1134 1131 acpi_thermal_unregister_thermal_zone(tz);
1135   - mutex_destroy(&tz->lock);
1136 1132 kfree(tz);
1137 1133 return 0;
1138 1134 }