[PATCH] PCI: Fix dumb bug in mmconfig fix

Use correct address when referencing mmconfig aperture while checking
for broken MCFG. This was a typo when porting the code from 64bit to
32bit. It caused oopses at boot on some ThinkPads.

Should definitely go into 2.6.15.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andi Kleen and committed by Linus Torvalds 42f3ab42 52f975ea

+1 -1
+1 -1
arch/i386/pci/mmconfig.c
··· 155 155 addr = get_base_addr(0, 0, PCI_DEVFN(i, 0)); 156 156 if (addr != 0) 157 157 pci_exp_set_dev_base(addr, 0, PCI_DEVFN(i, 0)); 158 - if (addr == 0 || readl((u32 __iomem *)addr) != val1) 158 + if (addr == 0 || readl((u32 __iomem *)mmcfg_virt_addr) != val1) 159 159 set_bit(i, fallback_slots); 160 160 spin_unlock_irqrestore(&pci_config_lock, flags); 161 161 }