aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_agpsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_agpsupport.c')
-rw-r--r--drivers/gpu/drm/drm_agpsupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c
index e301d653d97e..084a674e4b56 100644
--- a/drivers/gpu/drm/drm_agpsupport.c
+++ b/drivers/gpu/drm/drm_agpsupport.c
@@ -439,7 +439,7 @@ void drm_agp_clear(struct drm_device *dev)
439{ 439{
440 struct drm_agp_mem *entry, *tempe; 440 struct drm_agp_mem *entry, *tempe;
441 441
442 if (!drm_core_has_AGP(dev) || !dev->agp) 442 if (!dev->agp)
443 return; 443 return;
444 if (drm_core_check_feature(dev, DRIVER_MODESET)) 444 if (drm_core_check_feature(dev, DRIVER_MODESET))
445 return; 445 return;