Module Name:    src
Committed By:   thorpej
Date:           Fri Jun  1 13:42:14 UTC 2018

Modified Files:
        src/sys/dev/gpio: gpiopps.c

Log Message:
Fix a paste-o that prevented the 2-pin interrupt messages from being
printed correctly (but no other harmful effects).  Pointed out by
Brad Spencer.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/gpio/gpiopps.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/dev/gpio/gpiopps.c
diff -u src/sys/dev/gpio/gpiopps.c:1.1 src/sys/dev/gpio/gpiopps.c:1.2
--- src/sys/dev/gpio/gpiopps.c:1.1	Sun May 20 14:08:33 2018
+++ src/sys/dev/gpio/gpiopps.c	Fri Jun  1 13:42:14 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: gpiopps.c,v 1.1 2018/05/20 14:08:33 thorpej Exp $ */
+/* $NetBSD: gpiopps.c,v 1.2 2018/06/01 13:42:14 thorpej Exp $ */
 
 /*
  * Copyright (c) 2016 Brad Spencer <b...@anduin.eldar.org>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gpiopps.c,v 1.1 2018/05/20 14:08:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpiopps.c,v 1.2 2018/06/01 13:42:14 thorpej Exp $");
 
 /*
  * GPIO interface to the pps subsystem for ntp support.
@@ -213,9 +213,9 @@ gpiopps_attach(device_t parent, device_t
 			return;
 		}
 		sc->sc_intrs[1].sc_irqmode = clear_edge;
-		if (!gpio_intr_str(sc->sc_gpio, &sc->sc_map, 0,
-				   sc->sc_intrs[0].sc_irqmode,
-				   sc->sc_intrs[0].sc_intrstr,
+		if (!gpio_intr_str(sc->sc_gpio, &sc->sc_map, 1,
+				   sc->sc_intrs[1].sc_irqmode,
+				   sc->sc_intrs[1].sc_intrstr,
 				   sizeof(sc->sc_intrs[1].sc_intrstr))) {
 			aprint_error_dev(self,
 			    "failed to decode CLEAR interrupt\n");

Reply via email to