summaryrefslogtreecommitdiff
path: root/bsd/drm_irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/drm_irq.h')
-rw-r--r--bsd/drm_irq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd/drm_irq.h b/bsd/drm_irq.h
index 418e697e..eec6ab93 100644
--- a/bsd/drm_irq.h
+++ b/bsd/drm_irq.h
@@ -97,8 +97,8 @@ int DRM(irq_install)(drm_device_t *dev)
/* Install handler */
#ifdef __FreeBSD__
dev->irqrid = 0;
- dev->irqr = bus_alloc_resource(dev->device, SYS_RES_IRQ, &dev->irqrid,
- 0, ~0, 1, RF_SHAREABLE);
+ dev->irqr = bus_alloc_resource_any(dev->device, SYS_RES_IRQ,
+ &dev->irqrid, RF_SHAREABLE);
if (!dev->irqr) {
retcode = ENOENT;
goto err;