diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-23 18:24:48 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-25 18:37:24 -0500 |
commit | 51fac8388a0325a43f0ae67453ece2c373e2ec28 (patch) | |
tree | 594ad19d7aeb58ea90cb38e7a95fee00c697e969 /drivers/acpi/thermal.c | |
parent | cc38e519132f62d52db0a04d2eaed0d7c52fb165 (diff) |
ACPI: Remove useless type argument of driver .remove() operation
The second argument of ACPI driver .remove() operation is only used
by the ACPI processor driver and the value passed to that driver
through it is always available from the given struct acpi_device
object's removal_type field. For this reason, the second ACPI driver
.remove() argument is in fact useless, so drop it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 506fbd4b5733..da079d4e0baa 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -97,7 +97,7 @@ module_param(psv, int, 0644); | |||
97 | MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); | 97 | MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); |
98 | 98 | ||
99 | static int acpi_thermal_add(struct acpi_device *device); | 99 | static int acpi_thermal_add(struct acpi_device *device); |
100 | static int acpi_thermal_remove(struct acpi_device *device, int type); | 100 | static int acpi_thermal_remove(struct acpi_device *device); |
101 | static void acpi_thermal_notify(struct acpi_device *device, u32 event); | 101 | static void acpi_thermal_notify(struct acpi_device *device, u32 event); |
102 | 102 | ||
103 | static const struct acpi_device_id thermal_device_ids[] = { | 103 | static const struct acpi_device_id thermal_device_ids[] = { |
@@ -1111,7 +1111,7 @@ end: | |||
1111 | return result; | 1111 | return result; |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | static int acpi_thermal_remove(struct acpi_device *device, int type) | 1114 | static int acpi_thermal_remove(struct acpi_device *device) |
1115 | { | 1115 | { |
1116 | struct acpi_thermal *tz = NULL; | 1116 | struct acpi_thermal *tz = NULL; |
1117 | 1117 | ||