Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce7685ad authored by Toshi Kani's avatar Toshi Kani Committed by Rafael J. Wysocki
Browse files

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: default avatarToshi Kani <toshi.kani@hp.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 87b85b3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}