summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-05-04 17:14:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-05-04 17:14:13 +0000
commitd4a51209cd8cfdc755423b873d2eef5a82c82683 (patch)
tree2a7d7e36131ce8ec3a57f22d0fed9a4d1a009d88 /sys/dev/pci/drm
parent641ced0676ac1e1a7e6ab2237832a55f8e4051da (diff)
Silence "Uunable to acquire AGP" message since we don't support AGP on all
AGP-capable chipsets and probably never will.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_agp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_agp.c b/sys/dev/pci/drm/radeon/radeon_agp.c
index 47ef96bec3e..8a70c1e79fb 100644
--- a/sys/dev/pci/drm/radeon/radeon_agp.c
+++ b/sys/dev/pci/drm/radeon/radeon_agp.c
@@ -139,7 +139,9 @@ int radeon_agp_init(struct radeon_device *rdev)
/* Acquire AGP. */
ret = drm_agp_acquire(rdev->ddev);
if (ret) {
+#ifdef __linux__
DRM_ERROR("Unable to acquire AGP: %d\n", ret);
+#endif
return ret;
}