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/fan.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/fan.c')
-rw-r--r-- | drivers/acpi/fan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 3bd6a54702d6..f815da82c765 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -45,7 +45,7 @@ MODULE_DESCRIPTION("ACPI Fan Driver"); | |||
45 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | 46 | ||
47 | static int acpi_fan_add(struct acpi_device *device); | 47 | static int acpi_fan_add(struct acpi_device *device); |
48 | static int acpi_fan_remove(struct acpi_device *device, int type); | 48 | static int acpi_fan_remove(struct acpi_device *device); |
49 | 49 | ||
50 | static const struct acpi_device_id fan_device_ids[] = { | 50 | static const struct acpi_device_id fan_device_ids[] = { |
51 | {"PNP0C0B", 0}, | 51 | {"PNP0C0B", 0}, |
@@ -172,7 +172,7 @@ static int acpi_fan_add(struct acpi_device *device) | |||
172 | return result; | 172 | return result; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int acpi_fan_remove(struct acpi_device *device, int type) | 175 | static int acpi_fan_remove(struct acpi_device *device) |
176 | { | 176 | { |
177 | struct thermal_cooling_device *cdev = acpi_driver_data(device); | 177 | struct thermal_cooling_device *cdev = acpi_driver_data(device); |
178 | 178 | ||