Module Name: src
Committed By: jmcneill
Date: Mon Aug 24 02:10:42 UTC 2009
Modified Files:
src/sys/dev/pci: genfb_pci.c
Log Message:
Register NULL pmf handlers, and note that firmware & MD code is responsible
for restoring the display device.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/pci/genfb_pci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/genfb_pci.c
diff -u src/sys/dev/pci/genfb_pci.c:1.20 src/sys/dev/pci/genfb_pci.c:1.21
--- src/sys/dev/pci/genfb_pci.c:1.20 Tue May 12 08:23:00 2009
+++ src/sys/dev/pci/genfb_pci.c Mon Aug 24 02:10:41 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb_pci.c,v 1.20 2009/05/12 08:23:00 cegger Exp $ */
+/* $NetBSD: genfb_pci.c,v 1.21 2009/08/24 02:10:41 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.20 2009/05/12 08:23:00 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb_pci.c,v 1.21 2009/08/24 02:10:41 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -128,6 +128,9 @@
sc->sc_pcitag = pa->pa_tag;
sc->sc_want_wsfb = 0;
+ /* firmware / MD code responsible for restoring the display */
+ pmf_device_register(self, NULL, NULL);
+
genfb_init(&sc->sc_gen);
if ((sc->sc_gen.sc_width == 0) || (sc->sc_gen.sc_fbsize == 0)) {