Module Name:    src
Committed By:   bouyer
Date:           Fri Apr  6 08:23:40 UTC 2018

Modified Files:
        src/sys/arch/arm/sunxi: sunxi_tcon.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/sunxi/sunxi_tcon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sunxi_tcon.c
diff -u src/sys/arch/arm/sunxi/sunxi_tcon.c:1.4 src/sys/arch/arm/sunxi/sunxi_tcon.c:1.5
--- src/sys/arch/arm/sunxi/sunxi_tcon.c:1.4	Wed Apr  4 16:01:05 2018
+++ src/sys/arch/arm/sunxi/sunxi_tcon.c	Fri Apr  6 08:23:40 2018
@@ -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 <[email protected]>
@@ -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 @@ sunxi_tcon_attach(device_t parent, devic
 	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",

Reply via email to