Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 22:27:31 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365283 - head/sys/dev/iicbus/mux
Message-ID:  <202009022227.082MRVHX061205@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Sep  2 22:27:30 2020
New Revision: 365283
URL: https://svnweb.freebsd.org/changeset/base/365283

Log:
  Fix the variable name passed to OF_getprop().
  
  Reported by:	tinderbox

Modified:
  head/sys/dev/iicbus/mux/ltc430x.c

Modified: head/sys/dev/iicbus/mux/ltc430x.c
==============================================================================
--- head/sys/dev/iicbus/mux/ltc430x.c	Wed Sep  2 22:10:08 2020	(r365282)
+++ head/sys/dev/iicbus/mux/ltc430x.c	Wed Sep  2 22:27:30 2020	(r365283)
@@ -176,7 +176,7 @@ ltc430x_attach(device_t dev)
 	node = ofw_bus_get_node(dev);
 	sc->idle_disconnect = OF_hasprop(node, "i2c-mux-idle-disconnect");
 
-	if (OF_getprop(macnode, "freebsd,ctlreg2", &val, sizeof(val)) > 0) {
+	if (OF_getprop(node, "freebsd,ctlreg2", &val, sizeof(val)) > 0) {
 		ctlreg2 = val;
 	}
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009022227.082MRVHX061205>