diff options
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 08ba85cab2dd..a5fa85832fa3 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -433,10 +433,7 @@ acpi_eject_store(struct acpi_device *device, const char *buf, size_t count) | |||
433 | islockable = device->flags.lockable; | 433 | islockable = device->flags.lockable; |
434 | handle = device->handle; | 434 | handle = device->handle; |
435 | 435 | ||
436 | if (type == ACPI_TYPE_PROCESSOR) | 436 | result = acpi_bus_trim(device, 1); |
437 | result = acpi_bus_trim(device, 0); | ||
438 | else | ||
439 | result = acpi_bus_trim(device, 1); | ||
440 | 437 | ||
441 | if (!result) | 438 | if (!result) |
442 | result = acpi_eject_operation(handle, islockable); | 439 | result = acpi_eject_operation(handle, islockable); |