From da6b44849763fac5ccb7d7511128454c6c2a92c7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 30 Aug 2004 11:34:51 +0000 Subject: implement drm_core_check_feature and use it .. looks lots nicer --- linux-core/i810_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/i810_dma.c') diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c index 51dddb3d..fe8f5c1d 100644 --- a/linux-core/i810_dma.c +++ b/linux-core/i810_dma.c @@ -242,7 +242,7 @@ int i810_dma_cleanup(drm_device_t *dev) * may not have been called from userspace and after dev_private * is freed, it's too late. */ - if ( (dev->driver_features & DRIVER_HAVE_IRQ) && dev->irq_enabled ) + if ( drm_core_check_feature(dev, DRIVER_HAVE_IRQ) && dev->irq_enabled ) DRM(irq_uninstall)(dev); if (dev->dev_private) { -- cgit v1.2.3