From 5198b6e10961b8a2a9330738cec0529026b89589 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Mon, 24 Aug 2009 02:10:41 +0000 Subject: [PATCH] Register NULL pmf handlers, and note that firmware & MD code is responsible for restoring the display device. --- sys/dev/pci/genfb_pci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/genfb_pci.c b/sys/dev/pci/genfb_pci.c index 01f406e7ec04..c80dc574d8eb 100644 --- a/sys/dev/pci/genfb_pci.c +++ b/sys/dev/pci/genfb_pci.c @@ -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 -__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 #include @@ -128,6 +128,9 @@ pci_genfb_attach(device_t parent, device_t self, void *aux) 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)) {