svn commit: r330528 - head/sys/dev/iicbus
Ian Lepore
ian at FreeBSD.org
Tue Mar 6 02:21:42 UTC 2018
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 at 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));
}
More information about the svn-src-all
mailing list