From a1329c24e1b1a37caf349b1a02ba80592211b760 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Sun, 17 Jan 2021 14:28:25 +0000 Subject: [PATCH] fix build without VCONS_DRAW_INTR --- sys/arch/arm/fdt/arm_simplefb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/fdt/arm_simplefb.c b/sys/arch/arm/fdt/arm_simplefb.c index 41f1fb7d0558..0ce9a25704f1 100644 --- a/sys/arch/arm/fdt/arm_simplefb.c +++ b/sys/arch/arm/fdt/arm_simplefb.c @@ -1,4 +1,4 @@ -/* $NetBSD: arm_simplefb.c,v 1.4 2020/10/21 11:06:13 rin Exp $ */ +/* $NetBSD: arm_simplefb.c,v 1.5 2021/01/17 14:28:25 jmcneill Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -31,9 +31,10 @@ #include "pci.h" #include "opt_pci.h" +#include "opt_vcons.h" #include -__KERNEL_RCSID(0, "$NetBSD: arm_simplefb.c,v 1.4 2020/10/21 11:06:13 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arm_simplefb.c,v 1.5 2021/01/17 14:28:25 jmcneill Exp $"); #include #include @@ -254,9 +255,11 @@ arm_simplefb_preattach(void) vcons_init(&arm_simplefb_vcons_data, sc, &arm_simplefb_stdscreen, &arm_simplefb_accessops); arm_simplefb_vcons_data.init_screen = arm_simplefb_init_screen; +#ifdef VCONS_DRAW_INTR arm_simplefb_vcons_data.use_intr = 0; +#endif vcons_init_screen(&arm_simplefb_vcons_data, &arm_simplefb_screen, 1, &defattr); - arm_simplefb_screen.scr_flags |= VCONS_SCREEN_IS_STATIC; + arm_simplefb_screen.scr_flags |= VCONS_SCREEN_IS_STATIC; if (ri->ri_rows < 1 || ri->ri_cols < 1) return;