]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm: fix minor issues caused by core conversion
authorDave Airlie <airlied@starflyer.(none)>
Thu, 7 Jul 2005 10:16:08 +0000 (20:16 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 7 Jul 2005 10:16:08 +0000 (20:16 +1000)
The conversion to core/driver got this check in-correct.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_fops.c

index 906794247aeb8cfe4343b99416df7ec3dcd375a3..7f9b00c6d244928c8ee6072a8b0e253f20d22e29 100644 (file)
@@ -251,7 +251,7 @@ int drm_release( struct inode *inode, struct file *filp )
                }
        }
        
-       if (drm_core_check_feature(dev, DRIVER_HAVE_DMA))
+       if (drm_core_check_feature(dev, DRIVER_HAVE_DMA) && !dev->driver->release)
        {
                dev->driver->reclaim_buffers(dev, filp);
        }