summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2018-06-03 06:10:23 +0300
committerPatrick Georgi <pgeorgi@google.com>2018-06-04 08:46:06 +0000
commit1bad4ce421188748d1c3dd6bafe3863cbb21dd24 (patch)
tree6e023a6ef1f1f731a61d9fa86ef9c2747f441927 /src
parent2d7825b0fce070f41ef35b7fdcf599550663dbe9 (diff)
sb/amd/sr5650: Fix invalid function declarations
Change-Id: I5034debc2296352e698898c20910a2d76071e30a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/26775 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/asus/kcma-d8/mainboard.c4
-rw-r--r--src/mainboard/asus/kgpe-d16/mainboard.c4
-rw-r--r--src/mainboard/supermicro/h8scm_fam10/mainboard.c4
-rw-r--r--src/southbridge/amd/sr5650/cmn.h4
-rw-r--r--src/southbridge/amd/sr5650/sr5650.c3
5 files changed, 4 insertions, 15 deletions
diff --git a/src/mainboard/asus/kcma-d8/mainboard.c b/src/mainboard/asus/kcma-d8/mainboard.c
index f8b2bd712f..8da41b085b 100644
--- a/src/mainboard/asus/kcma-d8/mainboard.c
+++ b/src/mainboard/asus/kcma-d8/mainboard.c
@@ -24,10 +24,6 @@
#include <southbridge/amd/sb700/sb700.h>
#include <southbridge/amd/sr5650/cmn.h>
-
-void set_pcie_reset(void);
-void set_pcie_dereset(void);
-
void set_pcie_reset(void)
{
struct device *pcie_core_dev;
diff --git a/src/mainboard/asus/kgpe-d16/mainboard.c b/src/mainboard/asus/kgpe-d16/mainboard.c
index ac28f6e40a..14a4a69762 100644
--- a/src/mainboard/asus/kgpe-d16/mainboard.c
+++ b/src/mainboard/asus/kgpe-d16/mainboard.c
@@ -24,10 +24,6 @@
#include <southbridge/amd/sb700/sb700.h>
#include <southbridge/amd/sr5650/cmn.h>
-
-void set_pcie_reset(void);
-void set_pcie_dereset(void);
-
void set_pcie_reset(void)
{
struct device *pcie_core_dev;
diff --git a/src/mainboard/supermicro/h8scm_fam10/mainboard.c b/src/mainboard/supermicro/h8scm_fam10/mainboard.c
index afce33db21..9ff43396ca 100644
--- a/src/mainboard/supermicro/h8scm_fam10/mainboard.c
+++ b/src/mainboard/supermicro/h8scm_fam10/mainboard.c
@@ -23,10 +23,6 @@
#include <southbridge/amd/sb700/sb700.h>
#include <southbridge/amd/sr5650/cmn.h>
-
-void set_pcie_reset(void);
-void set_pcie_dereset(void);
-
/*
* TODO: Add the routine info of each PCIE_RESET_L.
* TODO: Add the reset of each PCIE_RESET_L.
diff --git a/src/southbridge/amd/sr5650/cmn.h b/src/southbridge/amd/sr5650/cmn.h
index 0c0fd29ca7..e44d1e89c0 100644
--- a/src/southbridge/amd/sr5650/cmn.h
+++ b/src/southbridge/amd/sr5650/cmn.h
@@ -146,4 +146,8 @@ static inline void set_pcie_enable_bits(device_t dev, u32 reg_pos, u32 mask, u32
nb_write_index(dev, NBPCIE_INDEX, reg_pos, reg);
}
}
+
+void set_pcie_reset(void);
+void set_pcie_dereset(void);
+
#endif /* __SR5650_CMN_H__ */
diff --git a/src/southbridge/amd/sr5650/sr5650.c b/src/southbridge/amd/sr5650/sr5650.c
index ec78467d0e..1962ea3277 100644
--- a/src/southbridge/amd/sr5650/sr5650.c
+++ b/src/southbridge/amd/sr5650/sr5650.c
@@ -32,9 +32,6 @@
/*
* extern function declaration
*/
-extern void set_pcie_dereset(void);
-extern void set_pcie_reset(void);
-
struct resource * sr5650_retrieve_cpu_mmio_resource() {
struct device *domain;
struct resource *res;