diff options
author | Dave Airlie <airlied@linux.ie> | 2004-09-04 13:15:40 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-09-04 13:15:40 +0000 |
commit | 3d9e16aa6e074fdaa7a74f2fb6b0c46f1dd04172 (patch) | |
tree | 09d74de85b95715a9c42d3b754264ce17bfb917b | |
parent | 8825579f1c23f5165270fa284e11efd62437e34a (diff) |
doh.. that makes no sense.. thinko in removal of OS_HAS_AGP
-rw-r--r-- | linux-core/drm_vm.c | 3 | ||||
-rw-r--r-- | linux/drm_vm.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c index f13db00b..46eaf569 100644 --- a/linux-core/drm_vm.c +++ b/linux-core/drm_vm.c @@ -59,7 +59,8 @@ static __inline__ struct page *DRM(do_vm_nopage)(struct vm_area_struct *vma, /* * Find the right map */ - if (!(dev->agp && DRIVER_USE_AGP)) goto vm_nopage_error; + if (!drm_core_check_feature(dev, DRIVER_USE_AGP)) + goto vm_nopage_error; if(!dev->agp || !dev->agp->cant_use_aperture) goto vm_nopage_error; diff --git a/linux/drm_vm.h b/linux/drm_vm.h index f13db00b..46eaf569 100644 --- a/linux/drm_vm.h +++ b/linux/drm_vm.h @@ -59,7 +59,8 @@ static __inline__ struct page *DRM(do_vm_nopage)(struct vm_area_struct *vma, /* * Find the right map */ - if (!(dev->agp && DRIVER_USE_AGP)) goto vm_nopage_error; + if (!drm_core_check_feature(dev, DRIVER_USE_AGP)) + goto vm_nopage_error; if(!dev->agp || !dev->agp->cant_use_aperture) goto vm_nopage_error; |