From 3a96ac44e275eca84baea513bc0802f62fe83fd3 Mon Sep 17 00:00:00 2001 From: Harsha Priya Date: Fri, 15 Jul 2016 17:31:43 -0700 Subject: acpi: Change API called to write the name for ACPI_DP_TYPE_CHILD The API called to write the name of the child table in the dp entry (type ACPI_DP_TYPE_CHILD) was not including the quotes, e.g., it was DAAD and not "DAAD". Thus, the kernel driver did not get the right information from SSDT. Change the API to acpigen_write_string() to fix the issue. Signed-off-by: Harsha Priya Change-Id: Id33ad29e637bf1fe6b02e8a4b0fd9e220e8984e7 Reviewed-on: https://review.coreboot.org/15724 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/arch/x86/acpi_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/x86') diff --git a/src/arch/x86/acpi_device.c b/src/arch/x86/acpi_device.c index ce31dc8e21..2982999fe5 100644 --- a/src/arch/x86/acpi_device.c +++ b/src/arch/x86/acpi_device.c @@ -498,10 +498,10 @@ static void acpi_dp_write_value(const struct acpi_dp *prop) acpigen_write_integer(prop->integer); break; case ACPI_DP_TYPE_STRING: + case ACPI_DP_TYPE_CHILD: acpigen_write_string(prop->string); break; case ACPI_DP_TYPE_REFERENCE: - case ACPI_DP_TYPE_CHILD: acpigen_emit_namestring(prop->string); break; case ACPI_DP_TYPE_ARRAY: -- cgit v1.2.3