From 5f0e8d84626902b1e48ab619319ab1c6eb9579a4 Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Tue, 5 May 2020 16:01:07 -0400 Subject: superio/winbond/w83977tf: Fix iasl warning The common PnP serial port DSDT code is intentionally included twice for two serial ports with different LDNs. Undefine LDN and the PM register name before redefining for second serial port so iasl doesn't complain. Change-Id: I031905479c66698fb01da028e3f37d923396d2d9 Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/c/coreboot/+/41095 Reviewed-by: Patrick Georgi Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/superio/winbond/w83977tf/acpi/superio.asl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/superio/winbond/w83977tf/acpi/superio.asl b/src/superio/winbond/w83977tf/acpi/superio.asl index cd514d07df..6e37a5bbc1 100644 --- a/src/superio/winbond/w83977tf/acpi/superio.asl +++ b/src/superio/winbond/w83977tf/acpi/superio.asl @@ -350,6 +350,8 @@ Device (ECP) #define SUPERIO_UART_LDN W83977TF_SP1 #define SUPERIO_UART_PM_REG UAPW #include + #undef SUPERIO_UART_LDN + #undef SUPERIO_UART_PM_REG #endif #ifdef SUPERIO_SHOW_UARTB -- cgit v1.2.3