Kill dmesg spam. Since we can't guarantee that a device is capable of
authoroga <oga@openbsd.org>
Tue, 12 Aug 2008 23:10:41 +0000 (23:10 +0000)
committeroga <oga@openbsd.org>
Tue, 12 Aug 2008 23:10:41 +0000 (23:10 +0000)
having a drm driver, don't print when we fail to attach one.

stops the "drm at vga? not supported" spam people are seeing.

sys/dev/pci/vga_pci.c

index f8cc211..68fdf3e 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga_pci.c,v 1.36 2008/08/10 00:18:35 brad Exp $ */
+/* $OpenBSD: vga_pci.c,v 1.37 2008/08/12 23:10:41 oga Exp $ */
 /* $NetBSD: vga_pci.c,v 1.3 1998/06/08 06:55:58 thorpej Exp $ */
 
 /*
@@ -208,7 +208,7 @@ vga_pci_attach(struct device *parent, struct device *self, void *aux)
 #endif
 
 #if NDRMBASE > 0
-       config_found_sm(self, aux, vga_drm_print, drmsubmatch);
+       config_found_sm(self, aux, NULL, drmsubmatch);
 #endif
 }
 
@@ -253,14 +253,6 @@ drmsubmatch(struct device *parent, void *match, void *aux)
 
        return (0);
 }
-
-int
-vga_drm_print(void *aux, const char *pnp)
-{
-       if (pnp)
-               printf("drm at %s", pnp);
-       return (UNSUPP);
-}
 #endif
 
 paddr_t