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>
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
#ifndef PCI_H
|
||||
#define PCI_H
|
||||
|
||||
#if CONFIG_PCI
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <arch/rules.h>
|
||||
@ -98,4 +100,7 @@ static inline const struct pci_operations *ops_pci(device_t dev)
|
||||
}
|
||||
|
||||
#endif /* ! __SIMPLE_DEVICE__ */
|
||||
|
||||
#endif /* CONFIG_PCI */
|
||||
|
||||
#endif /* PCI_H */
|
||||
|
Reference in New Issue
Block a user