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/arcmsr/arcmsr.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/arcmsr/arcmsr.c')
-rw-r--r-- | sys/dev/arcmsr/arcmsr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/arcmsr/arcmsr.c b/sys/dev/arcmsr/arcmsr.c index f1eb7f3..636c2a8 100644 --- a/sys/dev/arcmsr/arcmsr.c +++ b/sys/dev/arcmsr/arcmsr.c @@ -4323,7 +4323,7 @@ static int arcmsr_attach(device_t dev) } /* After setting up the adapter, map our interrupt */ rid = 0; - irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE); + irqres = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if(irqres == NULL || #if __FreeBSD_version >= 700025 bus_setup_intr(dev, irqres, INTR_TYPE_CAM|INTR_ENTROPY|INTR_MPSAFE, NULL, arcmsr_intr_handler, acb, &acb->ih)) { |