summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/mga_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm/mga_dma.c')
-rw-r--r--sys/dev/drm/mga_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/mga_dma.c b/sys/dev/drm/mga_dma.c
index 6745d65..01406b5 100644
--- a/sys/dev/drm/mga_dma.c
+++ b/sys/dev/drm/mga_dma.c
@@ -646,7 +646,7 @@ int mga_do_cleanup_dma( drm_device_t *dev )
* may not have been called from userspace and after dev_private
* is freed, it's too late.
*/
- if ( dev->irq ) DRM(irq_uninstall)(dev);
+ if ( dev->irq_enabled ) DRM(irq_uninstall)(dev);
#endif
if ( dev->dev_private ) {
OpenPOWER on IntegriCloud