mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reviewed-by: Jiang Liu <[email protected]> Acked-by: Toshi Kani <[email protected]> Acked-by: Yinghai Lu <[email protected]>
This commit is contained in:
parent
cc38e51913
commit
51fac8388a
44 changed files with 70 additions and 73 deletions
|
|
@ -911,7 +911,7 @@ exit:
|
|||
return res;
|
||||
}
|
||||
|
||||
static int acpi_power_meter_remove(struct acpi_device *device, int type)
|
||||
static int acpi_power_meter_remove(struct acpi_device *device)
|
||||
{
|
||||
struct acpi_power_meter_resource *resource;
|
||||
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ struct atk_acpi_input_buf {
|
|||
};
|
||||
|
||||
static int atk_add(struct acpi_device *device);
|
||||
static int atk_remove(struct acpi_device *device, int type);
|
||||
static int atk_remove(struct acpi_device *device);
|
||||
static void atk_print_sensor(struct atk_data *data, union acpi_object *obj);
|
||||
static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
|
||||
static void atk_free_sensors(struct atk_data *data);
|
||||
|
|
@ -1416,7 +1416,7 @@ out:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int atk_remove(struct acpi_device *device, int type)
|
||||
static int atk_remove(struct acpi_device *device)
|
||||
{
|
||||
struct atk_data *data = device->driver_data;
|
||||
dev_dbg(&device->dev, "removing...\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue