Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Don't reference genfb unless NGENFB > 0



details:   https://anonhg.NetBSD.org/src/rev/addf120292d6
branches:  trunk
changeset: 746965:addf120292d6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 24 23:48:57 2009 +0000

description:
Don't reference genfb unless NGENFB > 0

diffstat:

 sys/arch/x86/x86/x86_autoconf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r c1e6a75b9a6b -r addf120292d6 sys/arch/x86/x86/x86_autoconf.c
--- a/sys/arch/x86/x86/x86_autoconf.c   Mon Aug 24 22:06:50 2009 +0000
+++ b/sys/arch/x86/x86/x86_autoconf.c   Mon Aug 24 23:48:57 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_autoconf.c,v 1.43 2009/08/24 11:35:27 jmcneill Exp $       */
+/*     $NetBSD: x86_autoconf.c,v 1.44 2009/08/24 23:48:57 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.43 2009/08/24 11:35:27 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_autoconf.c,v 1.44 2009/08/24 23:48:57 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -98,6 +98,7 @@
 static bool
 x86_genfb_resume(device_t dev PMF_FN_ARGS)
 {
+#if NGENFB > 0
        struct pci_genfb_softc *psc = device_private(dev);
 #if NACPICA > 0 && defined(VGA_POST)
        extern int acpi_md_vbios_reset;
@@ -112,6 +113,7 @@
        }
 #endif
        genfb_restore_palette(&psc->sc_gen);
+#endif
 
        return true;
 }



Home | Main Index | Thread Index | Old Index