From owner-svn-src-all@freebsd.org Tue Mar 6 02:21:42 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E188F42F00; Tue, 6 Mar 2018 02:21:42 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A1727B143; Tue, 6 Mar 2018 02:21:42 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 14FAD4B04; Tue, 6 Mar 2018 02:21:42 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w262LfR8056731; Tue, 6 Mar 2018 02:21:41 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w262LfdD056730; Tue, 6 Mar 2018 02:21:41 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201803060221.w262LfdD056730@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Tue, 6 Mar 2018 02:21:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r330528 - head/sys/dev/iicbus X-SVN-Group: head X-SVN-Commit-Author: ian X-SVN-Commit-Paths: head/sys/dev/iicbus X-SVN-Commit-Revision: 330528 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 02:21:42 -0000 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 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)); }