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/drm_scatter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux-core/drm_scatter.c') diff --git a/linux-core/drm_scatter.c b/linux-core/drm_scatter.c index 3f0bc10c..888e6296 100644 --- a/linux-core/drm_scatter.c +++ b/linux-core/drm_scatter.c @@ -73,7 +73,7 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp, DRM_DEBUG( "%s\n", __FUNCTION__ ); - if ( dev->driver_features & DRIVER_SG ) + if ( drm_core_check_feature(dev, DRIVER_SG )) return -EINVAL; if ( dev->sg ) @@ -209,7 +209,7 @@ int DRM(sg_free)( struct inode *inode, struct file *filp, drm_scatter_gather_t request; drm_sg_mem_t *entry; - if ( dev->driver_features & DRIVER_SG ) + if ( drm_core_check_feature(dev, DRIVER_SG )) return -EINVAL; if ( copy_from_user( &request, -- cgit v1.2.3