aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ichsmb
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-27 03:38:01 +0000
commitc47476d7e6801deffc8b3c057d0fbf7d2335a0c2 (patch)
treebc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/ichsmb
parentac6c1372f4ebb24615370e358640100e663f6746 (diff)
Notes
Diffstat (limited to 'sys/dev/ichsmb')
-rw-r--r--sys/dev/ichsmb/ichsmb_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ichsmb/ichsmb_pci.c b/sys/dev/ichsmb/ichsmb_pci.c
index fc8024a09e2a..8f3f106ca9b8 100644
--- a/sys/dev/ichsmb/ichsmb_pci.c
+++ b/sys/dev/ichsmb/ichsmb_pci.c
@@ -241,11 +241,11 @@ ichsmb_pci_attach(device_t dev)
/* Allocate an I/O range */
sc->io_rid = ICH_SMB_BASE;
- sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &sc->io_rid, 0, ~0, 16, RF_ACTIVE);
+ sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &sc->io_rid, 16, RF_ACTIVE);
if (sc->io_res == NULL)
- sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT,
- &sc->io_rid, 0ul, ~0ul, 32, RF_ACTIVE);
+ sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
+ &sc->io_rid, 32, RF_ACTIVE);
if (sc->io_res == NULL) {
device_printf(dev, "can't map I/O\n");
error = ENXIO;