Skip to content

Commit

Permalink
ACPI: sysfs eject support for ACPI scan handlers
Browse files Browse the repository at this point in the history
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 <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Toshi Kani authored and Rafael J. Wysocki committed Feb 13, 2013
1 parent 87b85b3 commit ce7685a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ce7685a

Please sign in to comment.