Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi Fix bad cut'n'paste, pointed out by David...



details:   https://anonhg.NetBSD.org/src/rev/95d62c7e5c44
branches:  trunk
changeset: 321786:95d62c7e5c44
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Apr 06 08:23:40 2018 +0000

description:
Fix bad cut'n'paste, pointed out by David Binderman in PR port-arm/53158

diffstat:

 sys/arch/arm/sunxi/sunxi_tcon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 907a3a98f803 -r 95d62c7e5c44 sys/arch/arm/sunxi/sunxi_tcon.c
--- a/sys/arch/arm/sunxi/sunxi_tcon.c   Thu Apr 05 22:38:58 2018 +0000
+++ b/sys/arch/arm/sunxi/sunxi_tcon.c   Fri Apr 06 08:23:40 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_tcon.c,v 1.4 2018/04/04 16:01:05 bouyer Exp $ */
+/* $NetBSD: sunxi_tcon.c,v 1.5 2018/04/06 08:23:40 bouyer Exp $ */
 
 /*-
  * Copyright (c) 2018 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.4 2018/04/04 16:01:05 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_tcon.c,v 1.5 2018/04/06 08:23:40 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -140,7 +140,7 @@
        sc->sc_clk_ch1 = fdtbus_clock_get(phandle, "tcon-ch1");
 
        if (sc->sc_clk_ahb == NULL || sc->sc_clk_ch0 == NULL
-           || sc->sc_clk_ch0 == NULL) {
+           || sc->sc_clk_ch1 == NULL) {
                aprint_error(": couldn't get clocks\n");
                aprint_debug_dev(self, "clk ahb %s tcon-ch0 %s tcon-ch1 %s\n",
                    sc->sc_clk_ahb == NULL ? "missing" : "present",



Home | Main Index | Thread Index | Old Index