From 564c2191ab5d2c57ce7d3fda9a7596ef3e39b975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 3 Jun 2018 06:12:03 +0300 Subject: sb/amd/rs780: Fix invalid function declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide empty stub implementations for set_pcie_reset() and set_pcie_dereset(), many boards do not provide a proper one. Change-Id: Ia6811442905ef1776fa5a8e3f5d4433e86e42f88 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/26776 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/asus/m4a78-em/mainboard.c | 8 ++------ src/mainboard/asus/m4a785-m/mainboard.c | 7 ++----- src/mainboard/asus/m5a88-v/mainboard.c | 11 ----------- 3 files changed, 4 insertions(+), 22 deletions(-) (limited to 'src/mainboard/asus') diff --git a/src/mainboard/asus/m4a78-em/mainboard.c b/src/mainboard/asus/m4a78-em/mainboard.c index e80d39b0e8..87acc5674c 100644 --- a/src/mainboard/asus/m4a78-em/mainboard.c +++ b/src/mainboard/asus/m4a78-em/mainboard.c @@ -24,11 +24,7 @@ #include "southbridge/amd/sb700/smbus.h" #include "southbridge/amd/rs780/rs780.h" - -void set_pcie_dereset(void); -void set_pcie_reset(void); - -void set_pcie_dereset() +void set_pcie_dereset(void) { u8 byte; u16 word; @@ -53,7 +49,7 @@ void set_pcie_dereset() pci_write_config16(sm_dev, 0x7e, word); } -void set_pcie_reset() +void set_pcie_reset(void) { u8 byte; u16 word; diff --git a/src/mainboard/asus/m4a785-m/mainboard.c b/src/mainboard/asus/m4a785-m/mainboard.c index 42a9f644e3..5acce51969 100644 --- a/src/mainboard/asus/m4a785-m/mainboard.c +++ b/src/mainboard/asus/m4a785-m/mainboard.c @@ -34,10 +34,7 @@ #define ADT7461_write_byte(address, val) \ do_smbus_write_byte(SMBUS_IO_BASE, ADT7461_ADDRESS, address, val) -void set_pcie_dereset(void); -void set_pcie_reset(void); - -void set_pcie_dereset() +void set_pcie_dereset(void) { u8 byte; u16 word; @@ -62,7 +59,7 @@ void set_pcie_dereset() pci_write_config16(sm_dev, 0x7e, word); } -void set_pcie_reset() +void set_pcie_reset(void) { u8 byte; u16 word; diff --git a/src/mainboard/asus/m5a88-v/mainboard.c b/src/mainboard/asus/m5a88-v/mainboard.c index 4ec716e96a..75f231e74b 100644 --- a/src/mainboard/asus/m5a88-v/mainboard.c +++ b/src/mainboard/asus/m5a88-v/mainboard.c @@ -23,9 +23,6 @@ #include #include "southbridge/amd/rs780/rs780.h" -void set_pcie_dereset(void); -void set_pcie_reset(void); - /* GPIO6. */ static void enable_int_gfx(void) { @@ -45,14 +42,6 @@ static void enable_int_gfx(void) *(gpio_reg + 170) = 0x0; } -void set_pcie_dereset() -{ -} - -void set_pcie_reset(void) -{ -} - int is_dev3_present(void) { return 0; -- cgit v1.2.3