summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_irq.c')
-rw-r--r--sys/dev/pci/drm/drm_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_irq.c b/sys/dev/pci/drm/drm_irq.c
index bb03f79a2b3..ede6c66baf4 100644
--- a/sys/dev/pci/drm/drm_irq.c
+++ b/sys/dev/pci/drm/drm_irq.c
@@ -111,7 +111,8 @@ drm_irq_install(struct drm_device *dev)
DRM_DEBUG("%s: interrupting at %s\n", dev->device.dv_xname, istr);
/* After installing handler */
- dev->driver->irq_postinstall(dev);
+ if (dev->driver->irq_postinstall != NULL)
+ dev->driver->irq_postinstall(dev);
return 0;
err:
@@ -141,7 +142,6 @@ drm_irq_uninstall(struct drm_device *dev)
pci_intr_disestablish(dev->pa.pa_pc, dev->irqh);
- drm_vblank_cleanup(dev);
DRM_SPINUNINIT(&dev->irq_lock);
return 0;