Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/clk Make "put" clk func optional
details: https://anonhg.NetBSD.org/src/rev/dbb565f9edc2
branches: trunk
changeset: 448315:dbb565f9edc2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Jan 30 01:20:47 2019 +0000
description:
Make "put" clk func optional
diffstat:
sys/dev/clk/clk.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 0416cc4c7151 -r dbb565f9edc2 sys/dev/clk/clk.c
--- a/sys/dev/clk/clk.c Wed Jan 30 01:19:49 2019 +0000
+++ b/sys/dev/clk/clk.c Wed Jan 30 01:20:47 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clk.c,v 1.5 2018/06/12 23:08:37 jmcneill Exp $ */
+/* $NetBSD: clk.c,v 1.6 2019/01/30 01:20:47 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clk.c,v 1.5 2018/06/12 23:08:37 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clk.c,v 1.6 2019/01/30 01:20:47 jmcneill Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -196,7 +196,8 @@
void
clk_put(struct clk *clk)
{
- return clk->domain->funcs->put(clk->domain->priv, clk);
+ if (clk->domain->funcs->put)
+ clk->domain->funcs->put(clk->domain->priv, clk);
}
u_int
Home |
Main Index |
Thread Index |
Old Index