aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-20 19:07:17 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-21 18:50:49 -0500
commit700b8422fb9e6041907bda45a15f4e2ab0438a04 (patch)
tree148a28315ec01ac69254b368081f4a9d0588b50e
parent2bd74d91b1217d84d08db57b860d056d130248d3 (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>
-rw-r--r--drivers/acpi/bus.c4
-rw-r--r--drivers/acpi/scan.c10
-rw-r--r--drivers/acpi/utils.c2
-rw-r--r--drivers/xen/xen-acpi-cpuhotplug.c2
-rw-r--r--drivers/xen/xen-acpi-memhotplug.c2
-rw-r--r--include/acpi/acpi_bus.h8
6 files changed, 9 insertions, 19 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index e61e7b8a2eaf..4cefb98f274d 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -311,9 +311,7 @@ static void acpi_bus_osc_support(void)
311 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PPC_OST_SUPPORT; 311 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PPC_OST_SUPPORT;
312#endif 312#endif
313 313
314#ifdef ACPI_HOTPLUG_OST
315 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT; 314 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
316#endif
317 315
318 if (!ghes_disable) 316 if (!ghes_disable)
319 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_APEI_SUPPORT; 317 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_APEI_SUPPORT;
@@ -410,7 +408,7 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
410 return; 408 return;
411 409
412 err: 410 err:
413 acpi_evaluate_hotplug_ost(handle, type, ost_code, NULL); 411 acpi_evaluate_ost(handle, type, ost_code, NULL);
414} 412}
415 413
416/* -------------------------------------------------------------------------- 414/* --------------------------------------------------------------------------
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
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 19d016974080..0f5f78fa6545 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -422,7 +422,7 @@ out:
422EXPORT_SYMBOL(acpi_get_physical_device_location); 422EXPORT_SYMBOL(acpi_get_physical_device_location);
423 423
424/** 424/**
425 * acpi_evaluate_hotplug_ost: Evaluate _OST for hotplug operations 425 * acpi_evaluate_ost: Evaluate _OST for hotplug operations
426 * @handle: ACPI device handle 426 * @handle: ACPI device handle
427 * @source_event: source event code 427 * @source_event: source event code
428 * @status_code: status code 428 * @status_code: status code
diff --git a/drivers/xen/xen-acpi-cpuhotplug.c b/drivers/xen/xen-acpi-cpuhotplug.c
index 80875fb770ed..3e62ee4b3b66 100644
--- a/drivers/xen/xen-acpi-cpuhotplug.c
+++ b/drivers/xen/xen-acpi-cpuhotplug.c
@@ -313,7 +313,7 @@ static void acpi_processor_hotplug_notify(acpi_handle handle,
313 goto out; 313 goto out;
314 } 314 }
315 315
316 (void) acpi_evaluate_hotplug_ost(handle, event, ost_code, NULL); 316 (void) acpi_evaluate_ost(handle, event, ost_code, NULL);
317 317
318out: 318out:
319 acpi_scan_lock_release(); 319 acpi_scan_lock_release();
diff --git a/drivers/xen/xen-acpi-memhotplug.c b/drivers/xen/xen-acpi-memhotplug.c
index f8d18626969a..34e40b733f9a 100644
--- a/drivers/xen/xen-acpi-memhotplug.c
+++ b/drivers/xen/xen-acpi-memhotplug.c
@@ -285,7 +285,7 @@ static void acpi_memory_device_notify(acpi_handle handle, u32 event, void *data)
285 return; 285 return;
286 } 286 }
287 287
288 (void) acpi_evaluate_hotplug_ost(handle, event, ost_code, NULL); 288 (void) acpi_evaluate_ost(handle, event, ost_code, NULL);
289 return; 289 return;
290} 290}
291 291
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 5225fe06e4ff..4308a9aacc9a 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -51,14 +51,6 @@ acpi_evaluate_reference(acpi_handle handle,
51acpi_status 51acpi_status
52acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code, 52acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
53 struct acpi_buffer *status_buf); 53 struct acpi_buffer *status_buf);
54#ifdef ACPI_HOTPLUG_OST
55#define acpi_evaluate_hotplug_ost acpi_evaluate_ost
56#else
57static inline acpi_status
58acpi_evaluate_hotplug_ost(acpi_handle handle, u32 source_event,
59 u32 status_code, struct acpi_buffer *status_buf)
60{ return AE_OK; }
61#endif
62 54
63acpi_status 55acpi_status
64acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); 56acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld);