diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-13 23:56:41 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-01-13 23:58:57 -0500 |
commit | e43b3cec711a61edf047adf6204d542f3a659ef8 (patch) | |
tree | 6f61ccc35553e4d406ca60f68071bedff9928fe1 /arch | |
parent | ab3cd8670e0b3fcde7f029e1503ed3c5138e9571 (diff) |
x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI
early_pci_allowed() and read_pci_config_16() are only available if
CONFIG_PCI is defined.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 18182d19b71b..00f6c1472b85 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -612,6 +612,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10; | |||
612 | 612 | ||
613 | static bool __init snb_gfx_workaround_needed(void) | 613 | static bool __init snb_gfx_workaround_needed(void) |
614 | { | 614 | { |
615 | #ifdef CONFIG_PCI | ||
615 | int i; | 616 | int i; |
616 | u16 vendor, devid; | 617 | u16 vendor, devid; |
617 | static const __initconst u16 snb_ids[] = { | 618 | static const __initconst u16 snb_ids[] = { |
@@ -636,6 +637,7 @@ static bool __init snb_gfx_workaround_needed(void) | |||
636 | for (i = 0; i < ARRAY_SIZE(snb_ids); i++) | 637 | for (i = 0; i < ARRAY_SIZE(snb_ids); i++) |
637 | if (devid == snb_ids[i]) | 638 | if (devid == snb_ids[i]) |
638 | return true; | 639 | return true; |
640 | #endif | ||
639 | 641 | ||
640 | return false; | 642 | return false; |
641 | } | 643 | } |