diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/dpt/dpt_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index ee2116c..20487bb 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -93,7 +93,7 @@ dpt_pci_attach (device_t dev) io = bus_alloc_resource(dev, iotype, &rid, 0, ~0, 1, RF_ACTIVE); } #endif - if (io == NULL && (command & PCI_COMMAND_IO_ENABLE) != 0) { + if (io == NULL && (command & PCIM_CMD_PORTEN) != 0) { rid = DPT_PCI_IOADDR; iotype = SYS_RES_IOPORT; io = bus_alloc_resource(dev, iotype, &rid, 0, ~0, 1, RF_ACTIVE); |