aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/pci/init.c')
-rw-r--r--arch/x86/pci/init.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/pci/init.c b/arch/x86/pci/init.c
index 2080b04b3bcc..343c36337e69 100644
--- a/arch/x86/pci/init.c
+++ b/arch/x86/pci/init.c
@@ -6,14 +6,13 @@
6 in the right sequence from here. */ 6 in the right sequence from here. */
7static __init int pci_access_init(void) 7static __init int pci_access_init(void)
8{ 8{
9 int type __maybe_unused = 0;
10
11#ifdef CONFIG_PCI_DIRECT 9#ifdef CONFIG_PCI_DIRECT
10 int type = 0;
11
12 type = pci_direct_probe(); 12 type = pci_direct_probe();
13#endif 13#endif
14 pci_mmcfg_early_init(type); 14 pci_mmcfg_early_init();
15 if (raw_pci_ops) 15
16 return 0;
17#ifdef CONFIG_PCI_BIOS 16#ifdef CONFIG_PCI_BIOS
18 pci_pcbios_init(); 17 pci_pcbios_init();
19#endif 18#endif
@@ -26,7 +25,7 @@ static __init int pci_access_init(void)
26#ifdef CONFIG_PCI_DIRECT 25#ifdef CONFIG_PCI_DIRECT
27 pci_direct_init(type); 26 pci_direct_init(type);
28#endif 27#endif
29 if (!raw_pci_ops) 28 if (!raw_pci_ops && !raw_pci_ext_ops)
30 printk(KERN_ERR 29 printk(KERN_ERR
31 "PCI: Fatal: No config space access function found\n"); 30 "PCI: Fatal: No config space access function found\n");
32 31