Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Print an error if we fail to acquire a regulator
details: https://anonhg.NetBSD.org/src/rev/6275a12efbe8
branches: trunk
changeset: 356397:6275a12efbe8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Sep 22 15:33:21 2017 +0000
description:
Print an error if we fail to acquire a regulator
diffstat:
sys/dev/fdt/fdt_regulator.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 38d30db66512 -r 6275a12efbe8 sys/dev/fdt/fdt_regulator.c
--- a/sys/dev/fdt/fdt_regulator.c Fri Sep 22 14:36:22 2017 +0000
+++ b/sys/dev/fdt/fdt_regulator.c Fri Sep 22 15:33:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_regulator.c,v 1.3 2017/04/22 21:47:41 jmcneill Exp $ */
+/* $NetBSD: fdt_regulator.c,v 1.4 2017/09/22 15:33:21 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fdt_regulator.c,v 1.3 2017/04/22 21:47:41 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_regulator.c,v 1.4 2017/09/22 15:33:21 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -97,6 +97,7 @@
error = rc->rc_funcs->acquire(rc->rc_dev);
if (error) {
+ aprint_error_dev(rc->rc_dev, "failed to acquire regulator: %d\n", error);
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index