diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-06-17 17:05:36 +1000 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-06-21 08:07:22 +0200 |
commit | a173a6255b5c3b7febea5cdf581fc3a57299954a (patch) | |
tree | 836bff5c5e36419761ad736d3686b1384673f982 /src/device/oprom/yabel/io.c | |
parent | 9107e53756e158cf2b5803862b731577407265d5 (diff) | |
download | coreboot-staging-a173a6255b5c3b7febea5cdf581fc3a57299954a.zip coreboot-staging-a173a6255b5c3b7febea5cdf581fc3a57299954a.tar.gz |
Remove guarding #includes by CONFIG_FOO combinations
First of many to remove guarding the inclusion of headers based on
CONFIG_ options. This *potentially* could hide issues such as functions
being swapped from under our feet, since different runtime behaviour
could be declared with the function same name and type-signature. Hence,
depending on the header we happen to get may change runtime behaviour.
Change-Id: Ife56801c783c44e1882abef711e09b85b7f295a4
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6055
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/device/oprom/yabel/io.c')
-rw-r--r-- | src/device/oprom/yabel/io.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index 94f610d..37beccb 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -20,15 +20,12 @@ #include <device/oprom/include/io.h> #include "io.h" -#if CONFIG_PCI_OPTION_ROM_RUN_YABEL #include <device/pci.h> #include <device/pci_ops.h> #include <device/resource.h> -#endif -#if CONFIG_ARCH_X86 #include <arch/io.h> -#else + // these are not used, only needed for linking, must be overridden using X86emu_setupPioFuncs // with the functions and struct below void @@ -76,10 +73,6 @@ inl(u16 port) return 0; } -#ifndef CONFIG_PCI -#endif -#endif - #if CONFIG_YABEL_DIRECTHW u8 my_inb(X86EMU_pioAddr addr) { |