Commit 16ff816d authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Rafael J. Wysocki

ACPI / memhotplug: Use defined marco METHOD_NAME__STA

We already have predefined marco for method name "_STA', so
using the marco instead of directly using the string.
Signed-off-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent acd3e2c9
...@@ -152,8 +152,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device) ...@@ -152,8 +152,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device)
unsigned long long current_status; unsigned long long current_status;
/* Get device present/absent information from the _STA */ /* Get device present/absent information from the _STA */
if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA", if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle,
NULL, &current_status))) METHOD_NAME__STA, NULL,
&current_status)))
return -ENODEV; return -ENODEV;
/* /*
* Check for device status. Device should be * Check for device status. Device should be
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment