diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-19 03:37:56 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-19 03:37:56 +0000 |
| commit | 43cd61606b6bfae52bb09856277751103bfa28fd (patch) | |
| tree | b91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/dev/hptiop | |
| parent | 277db305768ad6765ed735ced43360000c282ed6 (diff) | |
Notes
Diffstat (limited to 'sys/dev/hptiop')
| -rw-r--r-- | sys/dev/hptiop/hptiop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hptiop/hptiop.c b/sys/dev/hptiop/hptiop.c index 1a2bd20247444..204e13d3cc018 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; } |
