Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2018 02:21:41 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r330528 - head/sys/dev/iicbus
Message-ID:  <201803060221.w262LfdD056730@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Tue Mar  6 02:21:41 2018
New Revision: 330528
URL: https://svnweb.freebsd.org/changeset/base/330528

Log:
  Fix a paste-o that broke the build.  There is no softc pointer here, just
  use the dev arg.
  
  Reported by:	Jonathan Looney <jonlooney@gmail.com>
  Pointy hat:	ian@

Modified:
  head/sys/dev/iicbus/ds1672.c

Modified: head/sys/dev/iicbus/ds1672.c
==============================================================================
--- head/sys/dev/iicbus/ds1672.c	Tue Mar  6 01:52:04 2018	(r330527)
+++ head/sys/dev/iicbus/ds1672.c	Tue Mar  6 02:21:41 2018	(r330528)
@@ -144,7 +144,7 @@ ds1672_gettime(device_t dev, struct timespec *ts)
 			   | (secs[1] <<  8) | (secs[0] <<  0);
 		ts->tv_nsec = 0;
 	}
-	clock_dbgprint_ts(sc->sc_dev, CLOCK_DBG_READ, ts); 
+	clock_dbgprint_ts(dev, CLOCK_DBG_READ, ts); 
 	return (error);
 }
 
@@ -159,7 +159,7 @@ ds1672_settime(device_t dev, struct timespec *ts)
 	data[3] = (ts->tv_sec >> 24) & 0xff;
 
 	ts->tv_nsec = 0;
-	clock_dbgprint_ts(sc->sc_dev, CLOCK_DBG_WRITE, ts);
+	clock_dbgprint_ts(dev, CLOCK_DBG_WRITE, ts);
 	return (ds1672_write(dev, DS1672_COUNTER, data, 4));
 }
 



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