drm: fix minor issues caused by core conversion
The conversion to core/driver got this check in-correct. Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
c101f3136c
commit
0c7b525c34
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue