From: oga Date: Tue, 12 Aug 2008 23:10:41 +0000 (+0000) Subject: Kill dmesg spam. Since we can't guarantee that a device is capable of X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9ab2e792aa89a1e8e54e38e19b331b3b571d94cf;p=openbsd 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. --- 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