Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/fdt don't call plat->ap_early_putchar if not...



details:   https://anonhg.NetBSD.org/src/rev/ff456e994083
branches:  trunk
changeset: 993834:ff456e994083
user:      ryo <ryo%NetBSD.org@localhost>
date:      Thu Oct 04 07:33:54 2018 +0000

description:
don't call plat->ap_early_putchar if not defined EARLYCONS

diffstat:

 sys/arch/evbarm/fdt/fdt_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 487f73fec0e6 -r ff456e994083 sys/arch/evbarm/fdt/fdt_machdep.c
--- a/sys/arch/evbarm/fdt/fdt_machdep.c Wed Oct 03 13:59:31 2018 +0000
+++ b/sys/arch/evbarm/fdt/fdt_machdep.c Thu Oct 04 07:33:54 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_machdep.c,v 1.41 2018/09/29 20:58:31 jmcneill Exp $ */
+/* $NetBSD: fdt_machdep.c,v 1.42 2018/10/04 07:33:54 ryo Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.41 2018/09/29 20:58:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_machdep.c,v 1.42 2018/10/04 07:33:54 ryo Exp $");
 
 #include "opt_machdep.h"
 #include "opt_bootconfig.h"
@@ -137,11 +137,11 @@
 static void
 fdt_putchar(char c)
 {
+#ifdef EARLYCONS
        const struct arm_platform *plat = arm_fdt_platform();
        if (plat && plat->ap_early_putchar) {
                plat->ap_early_putchar(c);
        }
-#ifdef EARLYCONS
        else {
 #define PLATFORM_EARLY_PUTCHAR ___CONCAT(EARLYCONS, _platform_early_putchar)
                void PLATFORM_EARLY_PUTCHAR(char);



Home | Main Index | Thread Index | Old Index