acpi/acpigen.c: Remove weak gpio definition
Compiletime errors > runtime errors.
Change-Id: I1db0a8f01eaecf012e5444c03f8d4e2bb6e42a77
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58649
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 37bfec1..2b74261 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -2020,35 +2020,6 @@
acpigen_pop_len();
}
-/* Soc-implemented functions -- weak definitions. */
-int __weak acpigen_soc_read_rx_gpio(unsigned int gpio_num)
-{
- printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
- acpigen_write_debug_string("read_rx_gpio not available");
- return -1;
-}
-
-int __weak acpigen_soc_get_tx_gpio(unsigned int gpio_num)
-{
- printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
- acpigen_write_debug_string("get_tx_gpio not available");
- return -1;
-}
-
-int __weak acpigen_soc_set_tx_gpio(unsigned int gpio_num)
-{
- printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
- acpigen_write_debug_string("set_tx_gpio not available");
- return -1;
-}
-
-int __weak acpigen_soc_clear_tx_gpio(unsigned int gpio_num)
-{
- printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
- acpigen_write_debug_string("clear_tx_gpio not available");
- return -1;
-}
-
/*
* Helper functions for enabling/disabling Tx GPIOs based on the GPIO
* polarity. These functions end up calling acpigen_soc_{set,clear}_tx_gpio to