diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-20 19:07:17 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-21 18:50:49 -0500 |
commit | 700b8422fb9e6041907bda45a15f4e2ab0438a04 (patch) | |
tree | 148a28315ec01ac69254b368081f4a9d0588b50e /drivers/acpi/scan.c | |
parent | 2bd74d91b1217d84d08db57b860d056d130248d3 (diff) |
ACPI: Drop acpi_evaluate_hotplug_ost() and ACPI_HOTPLUG_OST
Replace acpi_evaluate_hotplug_ost() with acpi_evaluate_ost()
everywhere and drop the ACPI_HOTPLUG_OST symbol so that hotplug
_OST is supported unconditionally.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3fc530a8d362..f2d8d1c1c391 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -463,8 +463,8 @@ static int acpi_generic_hotplug_event(struct acpi_device *adev, u32 type) | |||
463 | dev_info(&adev->dev, "Eject disabled\n"); | 463 | dev_info(&adev->dev, "Eject disabled\n"); |
464 | return -EPERM; | 464 | return -EPERM; |
465 | } | 465 | } |
466 | acpi_evaluate_hotplug_ost(adev->handle, ACPI_NOTIFY_EJECT_REQUEST, | 466 | acpi_evaluate_ost(adev->handle, ACPI_NOTIFY_EJECT_REQUEST, |
467 | ACPI_OST_SC_EJECT_IN_PROGRESS, NULL); | 467 | ACPI_OST_SC_EJECT_IN_PROGRESS, NULL); |
468 | return acpi_scan_hot_remove(adev); | 468 | return acpi_scan_hot_remove(adev); |
469 | } | 469 | } |
470 | return -EINVAL; | 470 | return -EINVAL; |
@@ -512,7 +512,7 @@ void acpi_device_hotplug(void *data, u32 src) | |||
512 | ost_code = ACPI_OST_SC_SUCCESS; | 512 | ost_code = ACPI_OST_SC_SUCCESS; |
513 | 513 | ||
514 | err_out: | 514 | err_out: |
515 | acpi_evaluate_hotplug_ost(adev->handle, src, ost_code, NULL); | 515 | acpi_evaluate_ost(adev->handle, src, ost_code, NULL); |
516 | 516 | ||
517 | out: | 517 | out: |
518 | acpi_bus_put_acpi_device(adev); | 518 | acpi_bus_put_acpi_device(adev); |
@@ -572,8 +572,8 @@ acpi_eject_store(struct device *d, struct device_attribute *attr, | |||
572 | return count; | 572 | return count; |
573 | 573 | ||
574 | put_device(&acpi_device->dev); | 574 | put_device(&acpi_device->dev); |
575 | acpi_evaluate_hotplug_ost(acpi_device->handle, ACPI_OST_EC_OSPM_EJECT, | 575 | acpi_evaluate_ost(acpi_device->handle, ACPI_OST_EC_OSPM_EJECT, |
576 | ACPI_OST_SC_NON_SPECIFIC_FAILURE, NULL); | 576 | ACPI_OST_SC_NON_SPECIFIC_FAILURE, NULL); |
577 | return status == AE_NO_MEMORY ? -ENOMEM : -EAGAIN; | 577 | return status == AE_NO_MEMORY ? -ENOMEM : -EAGAIN; |
578 | } | 578 | } |
579 | 579 | ||