diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2008-02-29 02:56:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 17:41:04 -0400 |
commit | bb63b4219976d48ed6d22ac33c18be334fb5a78c (patch) | |
tree | fd63e9c86b43f246a1f7011881540718118890c9 /arch/x86/pci/init.c | |
parent | d2ebdf4bae4f1d7c30e71fd74f270ca4cda024fc (diff) |
x86 pci: remove checking type for mmconfig probe
doesn't need to check if it is type1 or type2, we can use raw_pci_ops
directly.
also make pci_direct_conf1 static again.
anyway is there system with type 2 and mmconf support?
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/pci/init.c')
-rw-r--r-- | arch/x86/pci/init.c | 11 |
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. */ |
7 | static __init int pci_access_init(void) | 7 | static __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 | ||