diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-30 11:34:51 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-30 11:34:51 +0000 |
commit | da6b44849763fac5ccb7d7511128454c6c2a92c7 (patch) | |
tree | eeacf7b240241350c040dc4751f4a4c3d9d52502 /linux-core/drm_vm.c | |
parent | 7809efc8c32520e6b25c143ee3276edbf534ed14 (diff) |
implement drm_core_check_feature and use it .. looks lots nicer
Diffstat (limited to 'linux-core/drm_vm.c')
-rw-r--r-- | linux-core/drm_vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c index ed5d53d2..f13db00b 100644 --- a/linux-core/drm_vm.c +++ b/linux-core/drm_vm.c @@ -206,7 +206,7 @@ void DRM(vm_shm_close)(struct vm_area_struct *vma) case _DRM_REGISTERS: case _DRM_FRAME_BUFFER: #if __OS_HAS_MTRR - if ((dev->driver_features & DRIVER_USE_MTRR) && map->mtrr >= 0) { + if (drm_core_check_feature(dev, DRIVER_USE_MTRR) && map->mtrr >= 0) { int retcode; retcode = mtrr_del(map->mtrr, map->offset, @@ -583,7 +583,7 @@ int DRM(mmap)(struct file *filp, struct vm_area_struct *vma) switch (map->type) { case _DRM_AGP: #if __OS_HAS_AGP - if ((dev->driver_features & DRIVER_USE_AGP) && dev->agp->cant_use_aperture) { + if (drm_core_check_feature(dev, DRIVER_USE_AGP) && dev->agp->cant_use_aperture) { /* * On some platforms we can't talk to bus dma address from the CPU, so for * memory of type DRM_AGP, we'll deal with sorting out the real physical |