diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
commit | 9da1c36d0a8d774c39703ec25190536771eaee70 (patch) | |
tree | bc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/netgraph/bluetooth | |
parent | 8db64542512568b735293ebaad1c652c899a02f1 (diff) | |
download | FreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.zip FreeBSD-src-9da1c36d0a8d774c39703ec25190536771eaee70.tar.gz |
Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given
count. Migrate these to use the new bus_alloc_resource_anywhere() API.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D5370
Diffstat (limited to 'sys/netgraph/bluetooth')
-rw-r--r-- | sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c index 634eb54..f3c4309 100644 --- a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c +++ b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c @@ -615,8 +615,8 @@ bt3c_pccard_attach(device_t dev) /* Allocate I/O ports */ sc->iobase_rid = 0; - sc->iobase = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->iobase_rid, - 0, ~0, 8, RF_ACTIVE); + sc->iobase = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, + &sc->iobase_rid, 8, RF_ACTIVE); if (sc->iobase == NULL) { device_printf(dev, "Could not allocate I/O ports\n"); goto bad; |