Module Name:    src
Committed By:   pgoyette
Date:           Sun Apr 26 02:23:27 UTC 2009

Modified Files:
        src/sys/dev/pci/drm: ati_pcigart.c

Log Message:
When drm is compiled in only for PCI devices, agp_flush_cache() is not
defined.  Wrap the call to it with #ifndef DRM_NO_AGP to avoid link
errors.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/drm/ati_pcigart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/drm/ati_pcigart.c
diff -u src/sys/dev/pci/drm/ati_pcigart.c:1.7 src/sys/dev/pci/drm/ati_pcigart.c:1.8
--- src/sys/dev/pci/drm/ati_pcigart.c:1.7	Wed Mar 18 16:00:19 2009
+++ src/sys/dev/pci/drm/ati_pcigart.c	Sun Apr 26 02:23:26 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: ati_pcigart.c,v 1.7 2009/03/18 16:00:19 cegger Exp $	*/
+/*	$NetBSD: ati_pcigart.c,v 1.8 2009/04/26 02:23:26 pgoyette Exp $	*/
 
 /* ati_pcigart.h -- ATI PCI GART support -*- linux-c -*-
  * Created: Wed Dec 13 21:52:19 2000 by [email protected]
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ati_pcigart.c,v 1.7 2009/03/18 16:00:19 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ati_pcigart.c,v 1.8 2009/04/26 02:23:26 pgoyette Exp $");
 /*
 __FBSDID("$FreeBSD: src/sys/dev/drm/ati_pcigart.c,v 1.3 2005/11/28 23:13:52 anholt Exp $");
 */
@@ -99,7 +99,9 @@
 		}
 	}
 
+#ifndef DRM_NO_AGP
 	agp_flush_cache();
+#endif
 
 	return 1;
 }

Reply via email to