aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/le
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2010-12-10 15:05:49 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2010-12-10 15:05:49 +0000
commit61faa8d87dbfa11c306aaec56175be340c417f10 (patch)
tree347fb0eb4bebbf1213dd1b09a9ea3b7fe48f0848 /sys/dev/le
parent933be1f00cc71ea766f0164ab69ed0c62515dbb1 (diff)
downloadsrc-61faa8d87dbfa11c306aaec56175be340c417f10.tar.gz
src-61faa8d87dbfa11c306aaec56175be340c417f10.zip
Use SYS_RES_IOPORT instead of PCIM_CMD_PORTEN when calling pci_enable_io.
Approved by: kib (mentor)
Notes
Notes: svn path=/head/; revision=216358
Diffstat (limited to 'sys/dev/le')
-rw-r--r--sys/dev/le/if_le_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/le/if_le_pci.c b/sys/dev/le/if_le_pci.c
index af7d07bfb4fc..ffa7cea7e324 100644
--- a/sys/dev/le/if_le_pci.c
+++ b/sys/dev/le/if_le_pci.c
@@ -312,7 +312,7 @@ le_pci_attach(device_t dev)
LE_LOCK_INIT(sc, device_get_nameunit(dev));
pci_enable_busmaster(dev);
- pci_enable_io(dev, PCIM_CMD_PORTEN);
+ pci_enable_io(dev, SYS_RES_IOPORT);
i = PCIR_BAR(0);
lesc->sc_rres = bus_alloc_resource_any(dev, SYS_RES_IOPORT,