Commit e43b3cec authored by H. Peter Anvin's avatar H. Peter Anvin

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: default avatarH. Peter Anvin <hpa@linux.intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
parent ab3cd867
...@@ -612,6 +612,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10; ...@@ -612,6 +612,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10;
static bool __init snb_gfx_workaround_needed(void) static bool __init snb_gfx_workaround_needed(void)
{ {
#ifdef CONFIG_PCI
int i; int i;
u16 vendor, devid; u16 vendor, devid;
static const __initconst u16 snb_ids[] = { static const __initconst u16 snb_ids[] = {
...@@ -636,6 +637,7 @@ static bool __init snb_gfx_workaround_needed(void) ...@@ -636,6 +637,7 @@ static bool __init snb_gfx_workaround_needed(void)
for (i = 0; i < ARRAY_SIZE(snb_ids); i++) for (i = 0; i < ARRAY_SIZE(snb_ids); i++)
if (devid == snb_ids[i]) if (devid == snb_ids[i])
return true; return true;
#endif
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment