diff options
author | jhibbits <jhibbits@FreeBSD.org> | 2016-02-19 03:37:56 +0000 |
---|---|---|
committer | jhibbits <jhibbits@FreeBSD.org> | 2016-02-19 03:37:56 +0000 |
commit | fbc9874dd0eedf00e9d1c958c8839e995c43ecbd (patch) | |
tree | b91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/dev/tws/tws.c | |
parent | 4e592305cb4c9a17486ac8884e958a3001479d88 (diff) | |
download | FreeBSD-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/tws/tws.c')
-rw-r--r-- | sys/dev/tws/tws.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tws/tws.c b/sys/dev/tws/tws.c index 4c3529e..80726a7 100644 --- a/sys/dev/tws/tws.c +++ b/sys/dev/tws/tws.c @@ -245,8 +245,8 @@ tws_attach(device_t dev) /* allocate MMIO register space */ sc->reg_res_id = TWS_PCI_BAR1; /* BAR1 offset */ - if ((sc->reg_res = bus_alloc_resource(dev, SYS_RES_MEMORY, - &(sc->reg_res_id), 0, ~0, 1, RF_ACTIVE)) + if ((sc->reg_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, + &(sc->reg_res_id), RF_ACTIVE)) == NULL) { tws_log(sc, ALLOC_MEMORY_RES); goto attach_fail_1; |