From: Zhang Yanfei Date: Wed, 2 Oct 2013 08:27:37 +0000 (+0800) Subject: ACPI / memhotplug: Use defined marco METHOD_NAME__STA X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16ff816d3b5d2b81fcff5ca44eb9a98ac3b604b4;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Rafael J. Wysocki --- 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) unsigned long long current_status; /* Get device present/absent information from the _STA */ - if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA", - NULL, ¤t_status))) + if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, + METHOD_NAME__STA, NULL, + ¤t_status))) return -ENODEV; /* * Check for device status. Device should be