aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/mmconfig_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/pci/mmconfig_32.c')
-rw-r--r--arch/x86/pci/mmconfig_32.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/x86/pci/mmconfig_32.c b/arch/x86/pci/mmconfig_32.c
index 7b75e6513436..081816ada057 100644
--- a/arch/x86/pci/mmconfig_32.c
+++ b/arch/x86/pci/mmconfig_32.c
@@ -68,9 +68,6 @@ err: *value = -1;
68 return -EINVAL; 68 return -EINVAL;
69 } 69 }
70 70
71 if (reg < 256)
72 return pci_conf1_read(seg,bus,devfn,reg,len,value);
73
74 base = get_base_addr(seg, bus, devfn); 71 base = get_base_addr(seg, bus, devfn);
75 if (!base) 72 if (!base)
76 goto err; 73 goto err;
@@ -104,9 +101,6 @@ static int pci_mmcfg_write(unsigned int seg, unsigned int bus,
104 if ((bus > 255) || (devfn > 255) || (reg > 4095)) 101 if ((bus > 255) || (devfn > 255) || (reg > 4095))
105 return -EINVAL; 102 return -EINVAL;
106 103
107 if (reg < 256)
108 return pci_conf1_write(seg,bus,devfn,reg,len,value);
109
110 base = get_base_addr(seg, bus, devfn); 104 base = get_base_addr(seg, bus, devfn);
111 if (!base) 105 if (!base)
112 return -EINVAL; 106 return -EINVAL;
@@ -138,7 +132,7 @@ static struct pci_raw_ops pci_mmcfg = {
138 132
139int __init pci_mmcfg_arch_init(void) 133int __init pci_mmcfg_arch_init(void)
140{ 134{
141 printk(KERN_INFO "PCI: Using MMCONFIG\n"); 135 printk(KERN_INFO "PCI: Using MMCONFIG for extended config space\n");
142 raw_pci_ops = &pci_mmcfg; 136 raw_pci_ext_ops = &pci_mmcfg;
143 return 1; 137 return 1;
144} 138}