Received: by mail.netbsd.org (Postfix, from userid 605) id F1A2884E1B; Wed, 1 Jan 2020 19:24:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5737E84E0A for ; Wed, 1 Jan 2020 19:24:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id mQMmWKML9nQL for ; Wed, 1 Jan 2020 19:24:04 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id E68CF84D3F for ; Wed, 1 Jan 2020 19:24:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D86FAFA97; Wed, 1 Jan 2020 19:24:03 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 1 Jan 2020 19:24:03 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200101192403.D86FAFA97@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Wed Jan 1 19:24:03 UTC 2020 Modified Files: src/sys/dev: clock_subr.h src/sys/dev/ic: mc146818.c mk48txx.c src/sys/kern: kern_todr.c Log Message: Fix some issues around todr_wenable(): - As previously defined, it was not possible to return an error from the back-end RTC driver. Make it a real function so that it can do so. - Only the mc146818 and mk48txx drivers used it (for historical reasons). Centralize the logic for how it's used in kern_todr.c (and make it private to that file) for consistency. To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/dev/clock_subr.h cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/mc146818.c cvs rdiff -u -r1.27 -r1.28 src/sys/dev/ic/mk48txx.c cvs rdiff -u -r1.42 -r1.43 src/sys/kern/kern_todr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.