aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ioat
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2015-10-24 23:46:20 +0000
committerConrad Meyer <cem@FreeBSD.org>2015-10-24 23:46:20 +0000
commite88e14b9f01d29616ccff4d3bbd84c71657d56f5 (patch)
tree9b8897824d3143b6ff3c6e1d6808e58657b7fa99 /sys/dev/ioat
parent8f2746370841a091fcd964c1aacb0295989cfaff (diff)
downloadsrc-e88e14b9f01d29616ccff4d3bbd84c71657d56f5.tar.gz
src-e88e14b9f01d29616ccff4d3bbd84c71657d56f5.zip
ioat: Use bus_alloc_resource_any(9)
Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=289911
Diffstat (limited to 'sys/dev/ioat')
-rw-r--r--sys/dev/ioat/ioat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ioat/ioat.c b/sys/dev/ioat/ioat.c
index 9ffec6a9b8b5..694816d8456c 100644
--- a/sys/dev/ioat/ioat.c
+++ b/sys/dev/ioat/ioat.c
@@ -451,8 +451,8 @@ ioat_map_pci_bar(struct ioat_softc *ioat)
{
ioat->pci_resource_id = PCIR_BAR(0);
- ioat->pci_resource = bus_alloc_resource(ioat->device, SYS_RES_MEMORY,
- &ioat->pci_resource_id, 0, ~0, 1, RF_ACTIVE);
+ ioat->pci_resource = bus_alloc_resource_any(ioat->device,
+ SYS_RES_MEMORY, &ioat->pci_resource_id, RF_ACTIVE);
if (ioat->pci_resource == NULL) {
ioat_log_message(0, "unable to allocate pci resource\n");