summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r--sys/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index f5da2d8..ca3de94 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -1032,7 +1032,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
#endif
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
continue;
- if (type == SYS_RES_IOPORT && !pci_memen(cfg))
+ if (type == SYS_RES_MEMORY && !pci_memen(cfg))
continue;
resource_list_add(rl, type, reg,
OpenPOWER on IntegriCloud