diff options
Diffstat (limited to 'arch/x86/pci/mmconfig_32.c')
-rw-r--r-- | arch/x86/pci/mmconfig_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/mmconfig_32.c b/arch/x86/pci/mmconfig_32.c index f10a7e94a84c..8c19df89ad75 100644 --- a/arch/x86/pci/mmconfig_32.c +++ b/arch/x86/pci/mmconfig_32.c | |||
@@ -47,7 +47,7 @@ static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) | |||
47 | */ | 47 | */ |
48 | static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) | 48 | static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) |
49 | { | 49 | { |
50 | u32 dev_base = base | (bus << 20) | (devfn << 12); | 50 | u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); |
51 | int cpu = smp_processor_id(); | 51 | int cpu = smp_processor_id(); |
52 | if (dev_base != mmcfg_last_accessed_device || | 52 | if (dev_base != mmcfg_last_accessed_device || |
53 | cpu != mmcfg_last_accessed_cpu) { | 53 | cpu != mmcfg_last_accessed_cpu) { |