summaryrefslogtreecommitdiff
path: root/src/northbridge/amd/agesa/family12
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-21 00:37:02 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-24 05:38:02 +0100
commit541ac596a24e51d269e5be936c1c84263340666c (patch)
tree40586a000402e7e647ce57aa5ea0dd7bf5d9f348 /src/northbridge/amd/agesa/family12
parentae5fd3453a61d95b9f786b4412cb1705563e81cb (diff)
northbridge/amd/agesa/family1{2,4}: make get_node_pci() static
Function is local only, as is with other families also. Change-Id: I1f652be1763a319b2f1c9b0f53e76d6bc44f3450 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7530 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/northbridge/amd/agesa/family12')
-rw-r--r--src/northbridge/amd/agesa/family12/northbridge.c4
-rw-r--r--src/northbridge/amd/agesa/family12/northbridge.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/northbridge/amd/agesa/family12/northbridge.c b/src/northbridge/amd/agesa/family12/northbridge.c
index 94de010935..d1686e03ab 100644
--- a/src/northbridge/amd/agesa/family12/northbridge.c
+++ b/src/northbridge/amd/agesa/family12/northbridge.c
@@ -47,8 +47,7 @@ static device_t __f2_dev[FX_DEVS];
static device_t __f4_dev[FX_DEVS];
static unsigned fx_devs=0;
-
-device_t get_node_pci(u32 nodeid, u32 fn)
+static device_t get_node_pci(u32 nodeid, u32 fn)
{
if ((CONFIG_CDB + nodeid) < 32) {
return dev_find_slot(CONFIG_CBB, PCI_DEVFN(CONFIG_CDB + nodeid, fn));
@@ -57,7 +56,6 @@ device_t get_node_pci(u32 nodeid, u32 fn)
}
}
-
static void get_fx_devs(void)
{
int i;
diff --git a/src/northbridge/amd/agesa/family12/northbridge.h b/src/northbridge/amd/agesa/family12/northbridge.h
index 3545048f78..301044d936 100644
--- a/src/northbridge/amd/agesa/family12/northbridge.h
+++ b/src/northbridge/amd/agesa/family12/northbridge.h
@@ -23,6 +23,4 @@
static struct device_operations pci_domain_ops;
static struct device_operations cpu_bus_ops;
-device_t get_node_pci(u32 nodeid, u32 fn);
-
#endif /* NORTHBRIDGE_AMD_AGESA_FAM12_H */