aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hptrr
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
commit43cd61606b6bfae52bb09856277751103bfa28fd (patch)
treeb91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/dev/hptrr
parent277db305768ad6765ed735ced43360000c282ed6 (diff)
Notes
Diffstat (limited to 'sys/dev/hptrr')
-rw-r--r--sys/dev/hptrr/hptrr_osm_bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hptrr/hptrr_osm_bsd.c b/sys/dev/hptrr/hptrr_osm_bsd.c
index ad7d79e34664..b5e718a55c11 100644
--- a/sys/dev/hptrr/hptrr_osm_bsd.c
+++ b/sys/dev/hptrr/hptrr_osm_bsd.c
@@ -1093,8 +1093,8 @@ static void hpt_final_init(void *dummy)
for (hba = vbus_ext->hba_list; hba; hba = hba->next) {
int 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)
{
os_printk("can't allocate interrupt");
return ;