summaryrefslogtreecommitdiffstats
path: root/sys/dev/sbni
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-03-03 01:07:17 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-03-03 01:07:17 +0000
commitbc371c5480a427bae05319b02c6b3e210d5dbcd0 (patch)
tree7c6ed3a343ae3970d7b186da3e7c157258149729 /sys/dev/sbni
parent530eefec62220649c7622872ad8c724f0a54451f (diff)
downloadFreeBSD-src-bc371c5480a427bae05319b02c6b3e210d5dbcd0.zip
FreeBSD-src-bc371c5480a427bae05319b02c6b3e210d5dbcd0.tar.gz
Allocate the PCI BAR resource with bus_alloc_resource_any()
We don't support allocating any other range with PCI BARs.
Diffstat (limited to 'sys/dev/sbni')
-rw-r--r--sys/dev/sbni/if_sbni_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c
index dfdc41b..47bebbf 100644
--- a/sys/dev/sbni/if_sbni_pci.c
+++ b/sys/dev/sbni/if_sbni_pci.c
@@ -95,8 +95,8 @@ sbni_pci_probe(device_t dev)
device_set_desc(dev, "Granch SBNI12/PCI adapter");
sc->io_rid = PCIR_BAR(0);
- sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid,
- 0ul, ~0ul, ports, RF_ACTIVE);
+ sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
+ &sc->io_rid, RF_ACTIVE);
if (!sc->io_res) {
device_printf(dev, "cannot allocate io ports!\n");
if (sc->slave_sc)
OpenPOWER on IntegriCloud