summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-08-12 23:10:42 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-08-12 23:10:42 +0000
commit2f7778951b911c5ca8f5ae39a31caa26b700ed72 (patch)
tree4fadbe8f82c3b46bc1e2cd7f7b42d0d4799eb808
parenta736b4e6e85b893396da7cd588d3af34c1053eec (diff)
Kill dmesg spam. Since we can't guarantee that a device is capable of
having a drm driver, don't print when we fail to attach one. stops the "drm at vga? not supported" spam people are seeing.
-rw-r--r--sys/dev/pci/vga_pci.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c
index f8cc21198b9..68fdf3e7e07 100644
--- a/sys/dev/pci/vga_pci.c
+++ b/sys/dev/pci/vga_pci.c
@@ -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