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 <jonloo...@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));
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to