From 2d7825b0fce070f41ef35b7fdcf599550663dbe9 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sat, 2 Jun 2018 14:52:25 +0300 Subject: amdfam10: Fix mismatch of function declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Callsite declared returning int, which makes more sense than u8 the motherboard side code defined the functions with. Change-Id: I8ee83aa2833408ad163c9011a076e08578f3ca6f Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/26774 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/asus/m4a785-m/mainboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/asus/m4a785-m/mainboard.c') diff --git a/src/mainboard/asus/m4a785-m/mainboard.c b/src/mainboard/asus/m4a785-m/mainboard.c index 4f4bb9dc78..42a9f644e3 100644 --- a/src/mainboard/asus/m4a785-m/mainboard.c +++ b/src/mainboard/asus/m4a785-m/mainboard.c @@ -22,6 +22,7 @@ #include #include "southbridge/amd/sb700/sb700.h" #include "southbridge/amd/sb700/smbus.h" +#include "southbridge/amd/rs780/rs780.h" #define ADT7461_ADDRESS 0x4C #define ARA_ADDRESS 0x0C /* Alert Response Address */ @@ -35,7 +36,6 @@ void set_pcie_dereset(void); void set_pcie_reset(void); -u8 is_dev3_present(void); void set_pcie_dereset() { @@ -93,7 +93,7 @@ void set_pcie_reset() * NOTE: This just copied from AMD Tilapia code. * It is completly unknown it it will work at all for ASUS M4A785-M. */ -u8 is_dev3_present(void) +int is_dev3_present(void) { u16 word; struct device *sm_dev; -- cgit v1.2.3