aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/scan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index a0ab828b2cc..95d5bc2acad 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -441,10 +441,7 @@ acpi_eject_store(struct acpi_device *device, const char *buf, size_t count)
441 islockable = device->flags.lockable; 441 islockable = device->flags.lockable;
442 handle = device->handle; 442 handle = device->handle;
443 443
444 if (type == ACPI_TYPE_PROCESSOR) 444 result = acpi_bus_trim(device, 1);
445 result = acpi_bus_trim(device, 0);
446 else
447 result = acpi_bus_trim(device, 1);
448 445
449 if (!result) 446 if (!result)
450 result = acpi_eject_operation(handle, islockable); 447 result = acpi_eject_operation(handle, islockable);