summaryrefslogtreecommitdiffstats
path: root/sys/dev/amdsbwd
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2017-01-18 23:23:46 +0000
committermarius <marius@FreeBSD.org>2017-01-18 23:23:46 +0000
commit6703c8703e6da08c2d0eaad1776d201909b4a66e (patch)
tree85fb355a224d7706f38ba3efb4fa06c0c18e87d0 /sys/dev/amdsbwd
parent36e499947d1a37d153706a2fbe20044bace4ea88 (diff)
downloadFreeBSD-src-6703c8703e6da08c2d0eaad1776d201909b4a66e.zip
FreeBSD-src-6703c8703e6da08c2d0eaad1776d201909b4a66e.tar.gz
MFC: r296135
Replace several bus_alloc_resource() calls with bus_alloc_resource_any() Most of these are BARs, and we allocate them in their entirety. The one outlier in this is amdsbwd(4), which calls bus_set_resource() prior.
Diffstat (limited to 'sys/dev/amdsbwd')
-rw-r--r--sys/dev/amdsbwd/amdsbwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amdsbwd/amdsbwd.c b/sys/dev/amdsbwd/amdsbwd.c
index f8824e5..628aef2 100644
--- a/sys/dev/amdsbwd/amdsbwd.c
+++ b/sys/dev/amdsbwd/amdsbwd.c
@@ -416,8 +416,8 @@ amdsbwd_probe(device_t dev)
return (ENXIO);
}
rid = 0;
- res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul,
- AMDSB_PMIO_WIDTH, RF_ACTIVE | RF_SHAREABLE);
+ res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
+ RF_ACTIVE | RF_SHAREABLE);
if (res == NULL) {
device_printf(dev, "bus_alloc_resource for IO failed\n");
return (ENXIO);
OpenPOWER on IntegriCloud