aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index f6754e87f046..49599ac49bda 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -217,7 +217,7 @@ static inline enum pci_bar_type decode_bar(struct resource *res, u32 bar)
217 217
218 res->flags = bar & ~PCI_BASE_ADDRESS_MEM_MASK; 218 res->flags = bar & ~PCI_BASE_ADDRESS_MEM_MASK;
219 219
220 if (res->flags == PCI_BASE_ADDRESS_MEM_TYPE_64) 220 if (res->flags & PCI_BASE_ADDRESS_MEM_TYPE_64)
221 return pci_bar_mem64; 221 return pci_bar_mem64;
222 return pci_bar_mem32; 222 return pci_bar_mem32;
223} 223}