diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-09 10:45:52 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-30 04:44:48 -0400 |
commit | a7fb8a23c1afa607ec8ce9f61df645f37c529434 (patch) | |
tree | 95864ca07759844665a5a48d7477d0936658171b /drivers/gpu/drm/drm_agpsupport.c | |
parent | 6e3f797c9ae9bd381247e90907838da43f695306 (diff) |
drm: Remove __OS_HAS_AGP
We already express the drm/agp depencies correctly in Kconfig, so we
can rip this remnant from the shared drm core days.
Aside: Pretty much all the #ifdefs in radeon/nouveau could be killed
if ttm would provide dummy functions. I'm not going to volunteer for
that though.
v2: Use IS_ENABLED(CONFIG_AGP) as suggested by Ville
v3: Polish from Ville's review.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com> (v2)
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_agpsupport.c')
-rw-r--r-- | drivers/gpu/drm/drm_agpsupport.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c index 4b2b4aa5033b..a10ea6aec629 100644 --- a/drivers/gpu/drm/drm_agpsupport.c +++ b/drivers/gpu/drm/drm_agpsupport.c | |||
@@ -36,8 +36,6 @@ | |||
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | #include "drm_legacy.h" | 37 | #include "drm_legacy.h" |
38 | 38 | ||
39 | #if __OS_HAS_AGP | ||
40 | |||
41 | #include <asm/agp.h> | 39 | #include <asm/agp.h> |
42 | 40 | ||
43 | /** | 41 | /** |
@@ -502,5 +500,3 @@ drm_agp_bind_pages(struct drm_device *dev, | |||
502 | return mem; | 500 | return mem; |
503 | } | 501 | } |
504 | EXPORT_SYMBOL(drm_agp_bind_pages); | 502 | EXPORT_SYMBOL(drm_agp_bind_pages); |
505 | |||
506 | #endif /* __OS_HAS_AGP */ | ||