svn commit: r216358 - head/sys/dev/le
Tijl Coosemans
tijl at FreeBSD.org
Fri Dec 10 15:05:49 UTC 2010
Author: tijl
Date: Fri Dec 10 15:05:49 2010
New Revision: 216358
URL: http://svn.freebsd.org/changeset/base/216358
Log:
Use SYS_RES_IOPORT instead of PCIM_CMD_PORTEN when calling pci_enable_io.
Approved by: kib (mentor)
Modified:
head/sys/dev/le/if_le_pci.c
Modified: head/sys/dev/le/if_le_pci.c
==============================================================================
--- head/sys/dev/le/if_le_pci.c Fri Dec 10 14:07:08 2010 (r216357)
+++ head/sys/dev/le/if_le_pci.c Fri Dec 10 15:05:49 2010 (r216358)
@@ -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,
More information about the svn-src-all
mailing list