summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/amd/amdk8/amdk8.h2
-rw-r--r--src/northbridge/amd/amdk8/util.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/northbridge/amd/amdk8/amdk8.h b/src/northbridge/amd/amdk8/amdk8.h
index a77a9d8057..3f849c0c8a 100644
--- a/src/northbridge/amd/amdk8/amdk8.h
+++ b/src/northbridge/amd/amdk8/amdk8.h
@@ -8,7 +8,7 @@
#include "amdk8_pre_f.h"
#endif
-#ifndef __PRE_RAM__
+#ifndef __ROMCC__
void showallroutes(int level, device_t dev);
#endif
diff --git a/src/northbridge/amd/amdk8/util.c b/src/northbridge/amd/amdk8/util.c
index ab4541790e..2e81d87f06 100644
--- a/src/northbridge/amd/amdk8/util.c
+++ b/src/northbridge/amd/amdk8/util.c
@@ -27,12 +27,10 @@
*/
#ifndef __PRE_RAM__
#include <console/console.h>
-#include <string.h>
#include <device/pci.h>
-#include <cpu/amd/amdk8_sysconf.h>
#include <device/pci_ops.h>
-#include "amdk8.h"
#endif
+#include "amdk8.h"
/* Function 1 */
/* the DRAM, MMIO,and PCIIO routing are 64-bit registers, hence the ending at