From 07841c2a2a930383dfd56d5adc966d0efaafec66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 17 Aug 2019 15:14:38 +0300 Subject: src/ec: Drop __PRE_RAM__ and __SMM__ guards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For files built in ramstage and smm -classes, testing for !__PRE_RAM__ is redundant. All chip_operations are exluded with use of DEVTREE_EARLY in static devicetree, so garbage collection will take care of the !__SMM__ cases. Change-Id: Id7219848d6f5c41c4a9724a72204fa5ef9458e43 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/34940 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/ec/acpi/ec.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ec/acpi') diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c index 61cad656eb..481622cf37 100644 --- a/src/ec/acpi/ec.c +++ b/src/ec/acpi/ec.c @@ -172,8 +172,6 @@ void ec_set_ports(u16 cmd_reg, u16 data_reg) #endif -#if !defined(__SMM__) && !defined(__PRE_RAM__) struct chip_operations ec_acpi_ops = { CHIP_NAME("ACPI Embedded Controller") }; -#endif -- cgit v1.2.3