summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptiop/hptiop.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hptiop/hptiop.c')
-rw-r--r--sys/dev/hptiop/hptiop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c
index 1a2bd20..204e13d 100644
--- a/sys/dev/hptiop/hptiop.c
+++ b/sys/dev/hptiop/hptiop.c
@@ -2052,8 +2052,8 @@ static int hptiop_attach(device_t dev)
xpt_action((union ccb *)&ccb);
rid = 0;
- if ((hba->irq_res = bus_alloc_resource(hba->pcidev, SYS_RES_IRQ,
- &rid, 0, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE)) == NULL) {
+ if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, SYS_RES_IRQ,
+ &rid, RF_SHAREABLE | RF_ACTIVE)) == NULL) {
device_printf(dev, "allocate irq failed!\n");
goto free_hba_path;
}
OpenPOWER on IntegriCloud