]> git.itanic.dy.fi Git - linux-stable/commitdiff
x86/Sandy Bridge: Sandy Bridge workaround depends on CONFIG_PCI
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 14 Jan 2013 04:56:41 +0000 (20:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:24:42 +0000 (18:24 -0600)
commit e43b3cec711a61edf047adf6204d542f3a659ef8 upstream.

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>
Signed-off-by: Abdallah Chatila <abdallah.chatila@ericsson.com>
arch/x86/kernel/setup.c

index d289ee73a248eaabdbfb42c4e7b3f4149e2d44cb..b71e4a533ccd980ecc211c7b3e128a37742406f4 100644 (file)
@@ -622,6 +622,7 @@ static unsigned reserve_low = CONFIG_X86_RESERVE_LOW << 10;
 
 static bool __init snb_gfx_workaround_needed(void)
 {
+#ifdef CONFIG_PCI
        int i;
        u16 vendor, devid;
        static const u16 snb_ids[] = {
@@ -646,6 +647,7 @@ static bool __init snb_gfx_workaround_needed(void)
        for (i = 0; i < ARRAY_SIZE(snb_ids); i++)
                if (devid == snb_ids[i])
                        return true;
+#endif
 
        return false;
 }