aboutsummaryrefslogtreecommitdiff
path: root/bsd-core/drm_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/drm_irq.c')
-rw-r--r--bsd-core/drm_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/drm_irq.c b/bsd-core/drm_irq.c
index 418e697e..eec6ab93 100644
--- a/bsd-core/drm_irq.c
+++ b/bsd-core/drm_irq.c
@@ -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;