diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-10-02 04:27:37 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-09 20:32:33 -0400 |
commit | 16ff816d3b5d2b81fcff5ca44eb9a98ac3b604b4 (patch) | |
tree | 199c23f2c7be5dd350cae72685354e1fbc01785a | |
parent | acd3e2c99464c0391885d58dbe7c99a11d4c0289 (diff) |
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: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 999adb5499c7..dc0880db909c 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -152,8 +152,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device) | |||
152 | unsigned long long current_status; | 152 | unsigned long long current_status; |
153 | 153 | ||
154 | /* Get device present/absent information from the _STA */ | 154 | /* Get device present/absent information from the _STA */ |
155 | if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA", | 155 | if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, |
156 | NULL, ¤t_status))) | 156 | METHOD_NAME__STA, NULL, |
157 | ¤t_status))) | ||
157 | return -ENODEV; | 158 | return -ENODEV; |
158 | /* | 159 | /* |
159 | * Check for device status. Device should be | 160 | * Check for device status. Device should be |