From 318066fbc1c53d0686bde6626a406c039ec0b8f3 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 12 Feb 2014 14:18:50 +0200 Subject: PCI: Guard pci.h with CONFIG_PCI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/5199 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/device/device.c | 2 +- src/device/device_util.c | 2 +- src/include/device/pci.h | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/device/device.c b/src/device/device.c index 9e068107d8..e068cee044 100644 --- a/src/device/device.c +++ b/src/device/device.c @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/device/device_util.c b/src/device/device_util.c index dc43b9a656..2bed4a9585 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 1741c0d1e9..7504cc7269 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -15,6 +15,8 @@ #ifndef PCI_H #define PCI_H +#if CONFIG_PCI + #include #include #include @@ -98,4 +100,7 @@ static inline const struct pci_operations *ops_pci(device_t dev) } #endif /* ! __SIMPLE_DEVICE__ */ + +#endif /* CONFIG_PCI */ + #endif /* PCI_H */ -- cgit v1.2.3