summaryrefslogtreecommitdiffstats
path: root/src/device/device.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-12 14:18:50 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-02-12 21:56:30 +0100
commit318066fbc1c53d0686bde6626a406c039ec0b8f3 (patch)
tree51b8e525b29fabf76d62b82390ed224519aa1ee9 /src/device/device.c
parent8cde852ecf4dced16b342a2da31990e0caf8b92b (diff)
downloadcoreboot-318066fbc1c53d0686bde6626a406c039ec0b8f3.tar.gz
coreboot-318066fbc1c53d0686bde6626a406c039ec0b8f3.tar.bz2
coreboot-318066fbc1c53d0686bde6626a406c039ec0b8f3.zip
PCI: Guard pci.h with CONFIG_PCI
Adding PCI functions for romstage in pci.h breaks ARMv7 build without this. Also fix two related includes to use pci_def.h instead. Change-Id: I5291eaf6ddf5a584f50af29cf791d2ca4d9caa71 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5199 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/device/device.c')
-rw-r--r--src/device/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device.c b/src/device/device.c
index 9e068107d8a5..e068cee044cd 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -35,7 +35,7 @@
#include <console/console.h>
#include <arch/io.h>
#include <device/device.h>
-#include <device/pci.h>
+#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <stdlib.h>
#include <string.h>