summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/vga_pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c
index 56f977a1b93..2989798a77f 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.69 2012/10/08 21:47:50 deraadt Exp $ */
+/* $OpenBSD: vga_pci.c,v 1.70 2013/03/04 21:52:36 kettenis Exp $ */
/* $NetBSD: vga_pci.c,v 1.3 1998/06/08 06:55:58 thorpej Exp $ */
/*
@@ -249,8 +249,6 @@ vga_pci_attach(struct device *parent, struct device *self, void *aux)
}
#endif
printf("\n");
- sc->sc_vc = vga_common_attach(self, pa->pa_iot, pa->pa_memt,
- WSDISPLAY_TYPE_PCIVGA);
vga_pci_bar_init(sc, pa);
@@ -294,6 +292,9 @@ vga_pci_attach(struct device *parent, struct device *self, void *aux)
#if NDRM > 0
config_found_sm(self, aux, NULL, drmsubmatch);
#endif
+
+ sc->sc_vc = vga_common_attach(self, pa->pa_iot, pa->pa_memt,
+ WSDISPLAY_TYPE_PCIVGA);
}
int