Skip to contentSkip to conversation

acpi/mem_hotplug: Use defined marco METHOD_NAME__STA

PATCH New Zhang Yanfei 1 participant 1 message Oct 2, 2013 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi/mem_hotplug: Use defined marco METHOD_NAME__STA

From: Zhang Yanfei <[email protected]>

We already have predefined marco for method name "_STA', so using the marco instead of directly using the string.

---
 drivers/acpi/acpi_memhotplug.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/acpi/acpi_memhotplug.c +3 -2
index 999adb5..dc0880d 100644
@@ -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, &current_status)))
+	if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle,
+					       METHOD_NAME__STA, NULL,
+					       &current_status)))
 		return -ENODEV;
 	/*
 	 * Check for device status. Device should be
Signature · 1 line
1.7.1