Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2014 19:37:37 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263183 - head/sys/dev/vt/hw/efifb
Message-ID:  <201403141937.s2EJbbux051879@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Mar 14 19:37:37 2014
New Revision: 263183
URL: http://svnweb.freebsd.org/changeset/base/263183

Log:
  Use the existence of module metadata to indicate framebuffer presence

Modified:
  head/sys/dev/vt/hw/efifb/efifb.c

Modified: head/sys/dev/vt/hw/efifb/efifb.c
==============================================================================
--- head/sys/dev/vt/hw/efifb/efifb.c	Fri Mar 14 17:59:36 2014	(r263182)
+++ head/sys/dev/vt/hw/efifb/efifb.c	Fri Mar 14 19:37:37 2014	(r263183)
@@ -87,7 +87,7 @@ vt_efb_init(struct vt_device *vd)
 		kmdp = preload_search_by_type("elf64 kernel");
         efifb = (struct efi_fb *)preload_search_info(kmdp,
             MODINFO_METADATA | MODINFOMD_EFI_FB);
-        if (!efifb->fb_present)
+	if (efifb == NULL)
 		return (CN_DEAD);
 
 	info->fb_height = efifb->fb_height;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403141937.s2EJbbux051879>