summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
commitfbc9874dd0eedf00e9d1c958c8839e995c43ecbd (patch)
treeb91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/dev/fb
parent4e592305cb4c9a17486ac8884e958a3001479d88 (diff)
downloadFreeBSD-src-fbc9874dd0eedf00e9d1c958c8839e995c43ecbd.zip
FreeBSD-src-fbc9874dd0eedf00e9d1c958c8839e995c43ecbd.tar.gz
Replace several bus_alloc_resource() calls using default arguments with bus_alloc_resource_any()
Since these calls only use default arguments, bus_alloc_resource_any() is the right call. Differential Revision: https://reviews.freebsd.org/D5306
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/s3_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/fb/s3_pci.c b/sys/dev/fb/s3_pci.c
index c1432e2..4a438fa 100644
--- a/sys/dev/fb/s3_pci.c
+++ b/sys/dev/fb/s3_pci.c
@@ -478,8 +478,8 @@ s3pci_attach(device_t dev)
/* Allocate resources
*/
rid = 0;
- if (!(sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0ul, ~0ul, 0, RF_ACTIVE | RF_SHAREABLE))) {
+ if (!(sc->port_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
+ RF_ACTIVE | RF_SHAREABLE))) {
printf("%s: port resource allocation failed!\n", __func__);
goto error;
}
@@ -487,8 +487,8 @@ s3pci_attach(device_t dev)
sc->sh = rman_get_bushandle(sc->port_res);
rid = 1;
- if (!(sc->enh_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
- 0ul, ~0ul, 0, RF_ACTIVE | RF_SHAREABLE))) {
+ if (!(sc->enh_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
+ RF_ACTIVE | RF_SHAREABLE))) {
printf("%s: enhanced port resource allocation failed!\n",
__func__);
goto error;
OpenPOWER on IntegriCloud