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>
这个提交包含在:
Rafael J. Wysocki
2013-01-24 00:24:48 +01:00
父节点 cc38e51913
当前提交 51fac8388a
修改 44 个文件,包含 70 行新增73 行删除

查看文件

@@ -157,7 +157,7 @@ add_err:
return -ENODEV;
}
static int acpi_topstar_remove(struct acpi_device *device, int type)
static int acpi_topstar_remove(struct acpi_device *device)
{
struct topstar_hkey *tps_hkey = acpi_driver_data(device);