summaryrefslogtreecommitdiffstats
path: root/sys/dev/cs/if_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cs/if_cs.c')
-rw-r--r--sys/dev/cs/if_cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c
index da8f6b1..3b28691 100644
--- a/sys/dev/cs/if_cs.c
+++ b/sys/dev/cs/if_cs.c
@@ -551,8 +551,8 @@ int cs_alloc_irq(device_t dev, int rid, int flags)
struct cs_softc *sc = device_get_softc(dev);
struct resource *res;
- res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
- 0ul, ~0ul, 1, (RF_ACTIVE | flags));
+ res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
+ (RF_ACTIVE | flags));
if (res) {
sc->irq_rid = rid;
sc->irq_res = res;
OpenPOWER on IntegriCloud