diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-24 00:24:48 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-26 00:37:24 +0100 |
commit | 51fac8388a0325a43f0ae67453ece2c373e2ec28 (patch) | |
tree | 594ad19d7aeb58ea90cb38e7a95fee00c697e969 /drivers/acpi/hed.c | |
parent | cc38e519132f62d52db0a04d2eaed0d7c52fb165 (diff) | |
download | linux-51fac8388a0325a43f0ae67453ece2c373e2ec28.tar.bz2 |
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/hed.c')
-rw-r--r-- | drivers/acpi/hed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/hed.c b/drivers/acpi/hed.c index a0cc796932f7..13b1d39d7cdf 100644 --- a/drivers/acpi/hed.c +++ b/drivers/acpi/hed.c @@ -70,7 +70,7 @@ static int acpi_hed_add(struct acpi_device *device) return 0; } -static int acpi_hed_remove(struct acpi_device *device, int type) +static int acpi_hed_remove(struct acpi_device *device) { hed_handle = NULL; return 0; |