mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
ACPI: sysfs eject support for ACPI scan handlers
Changed sysfs eject, acpi_eject_store(), so that it doesn't return error codes for devices nodes with ACPI scan handlers attached and no ACPI drivers. [rjw: Changelog] Signed-off-by: Toshi Kani <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
87b85b3c8a
commit
ce7685ad76
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ acpi_eject_store(struct device *d, struct device_attribute *attr,
|
|||
return -EINVAL;
|
||||
}
|
||||
#ifndef FORCE_EJECT
|
||||
if (acpi_device->driver == NULL) {
|
||||
if (!acpi_device->driver && !acpi_device->handler) {
|
||||
ret = -ENODEV;
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue