diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:35 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:20:04 -0500 |
commit | d9906753bb997d651beaba0e4026a873bd0e8340 (patch) | |
tree | 08cfef0a3d712dc1354ce90cd489d33283d9cdcf /drivers/gpu/drm/drm_agpsupport.c | |
parent | 8da79ccd1aaa2efe482b2c555c4684c7b503864a (diff) |
drm: rip out drm_core_has_AGP
Most place actually want to just check for dev->agp (most do, but a
few don't so this fixes a few potential NULL derefs). The only
exception is the agp init code which should check for the AGP driver
feature flag.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_agpsupport.c')
-rw-r--r-- | drivers/gpu/drm/drm_agpsupport.c | 2 |
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; |