diff options
Diffstat (limited to 'arch/x86/pci/mmconfig_64.c')
-rw-r--r-- | arch/x86/pci/mmconfig_64.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/pci/mmconfig_64.c b/arch/x86/pci/mmconfig_64.c index c4cf318e44a9..9207fd49233c 100644 --- a/arch/x86/pci/mmconfig_64.c +++ b/arch/x86/pci/mmconfig_64.c | |||
@@ -58,9 +58,6 @@ err: *value = -1; | |||
58 | return -EINVAL; | 58 | return -EINVAL; |
59 | } | 59 | } |
60 | 60 | ||
61 | if (reg < 256) | ||
62 | return pci_conf1_read(seg,bus,devfn,reg,len,value); | ||
63 | |||
64 | addr = pci_dev_base(seg, bus, devfn); | 61 | addr = pci_dev_base(seg, bus, devfn); |
65 | if (!addr) | 62 | if (!addr) |
66 | goto err; | 63 | goto err; |
@@ -89,9 +86,6 @@ static int pci_mmcfg_write(unsigned int seg, unsigned int bus, | |||
89 | if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) | 86 | if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) |
90 | return -EINVAL; | 87 | return -EINVAL; |
91 | 88 | ||
92 | if (reg < 256) | ||
93 | return pci_conf1_write(seg,bus,devfn,reg,len,value); | ||
94 | |||
95 | addr = pci_dev_base(seg, bus, devfn); | 89 | addr = pci_dev_base(seg, bus, devfn); |
96 | if (!addr) | 90 | if (!addr) |
97 | return -EINVAL; | 91 | return -EINVAL; |
@@ -150,6 +144,6 @@ int __init pci_mmcfg_arch_init(void) | |||
150 | return 0; | 144 | return 0; |
151 | } | 145 | } |
152 | } | 146 | } |
153 | raw_pci_ops = &pci_mmcfg; | 147 | raw_pci_ext_ops = &pci_mmcfg; |
154 | return 1; | 148 | return 1; |
155 | } | 149 | } |