summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2008-08-12 23:10:41 +0000
committeroga <oga@openbsd.org>2008-08-12 23:10:41 +0000
commit9ab2e792aa89a1e8e54e38e19b331b3b571d94cf (patch)
tree68e6af0d4694df4094fa36b23b385954eabd9920 /sys
parentFix multiple addition error recently introduced for when extended partitions (diff)
downloadwireguard-openbsd-9ab2e792aa89a1e8e54e38e19b331b3b571d94cf.tar.xz
wireguard-openbsd-9ab2e792aa89a1e8e54e38e19b331b3b571d94cf.zip
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.
Diffstat (limited to 'sys')
-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