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.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/x86/pci/init.c b/arch/x86/pci/init.c
index 0f5f7dd2a620..dd30c6076b5d 100644
--- a/arch/x86/pci/init.c
+++ b/arch/x86/pci/init.c
@@ -6,19 +6,17 @@
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#ifdef CONFIG_PCI_MMCONFIG 14
15 pci_mmcfg_init(type); 15 pci_mmcfg_early_init();
16#endif 16
17#ifdef CONFIG_PCI_OLPC 17#ifdef CONFIG_PCI_OLPC
18 pci_olpc_init(); 18 pci_olpc_init();
19#endif 19#endif
20 if (raw_pci_ops)
21 return 0;
22#ifdef CONFIG_PCI_BIOS 20#ifdef CONFIG_PCI_BIOS
23 pci_pcbios_init(); 21 pci_pcbios_init();
24#endif 22#endif
@@ -31,7 +29,7 @@ static __init int pci_access_init(void)
31#ifdef CONFIG_PCI_DIRECT 29#ifdef CONFIG_PCI_DIRECT
32 pci_direct_init(type); 30 pci_direct_init(type);
33#endif 31#endif
34 if (!raw_pci_ops) 32 if (!raw_pci_ops && !raw_pci_ext_ops)
35 printk(KERN_ERR 33 printk(KERN_ERR
36 "PCI: Fatal: No config space access function found\n"); 34 "PCI: Fatal: No config space access function found\n");
37 35