summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_agpsupport.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-08-17 15:31:40 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-08-17 15:31:40 +0000
commitb1361f1b0a19418bf243bd22c7ec8e3d999642c3 (patch)
tree0d253834edf485512f01b090e551bdaac781bc8e /sys/dev/pci/drm/drm_agpsupport.c
parent4c0300ad9e08841d3f27db4d7b6cdb6d8716ab3f (diff)
Kill some redundant ifdefs, they're taken care of elsewhere.
Diffstat (limited to 'sys/dev/pci/drm/drm_agpsupport.c')
-rw-r--r--sys/dev/pci/drm/drm_agpsupport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_agpsupport.c b/sys/dev/pci/drm/drm_agpsupport.c
index ea8a5c1b75a..8a9e38da066 100644
--- a/sys/dev/pci/drm/drm_agpsupport.c
+++ b/sys/dev/pci/drm/drm_agpsupport.c
@@ -378,6 +378,7 @@ drm_agp_free_ioctl(struct drm_device *dev, void *data,
drm_agp_head_t *
drm_agp_init(void)
{
+#ifndef DRM_NO_AGP
struct device *agpdev;
drm_agp_head_t *head = NULL;
int agp_available = 1;
@@ -393,13 +394,14 @@ drm_agp_init(void)
if (head == NULL)
return NULL;
head->agpdev = agpdev;
-#ifndef DRM_NO_AGP
agp_get_info(agpdev, &head->info);
-#endif
head->base = head->info.ai_aperture_base;
TAILQ_INIT(&head->memory);
}
return head;
+#else
+ return (NULL);
+#endif
}
void *