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/74ab2ed1079c
branches:  trunk
changeset: 826698:74ab2ed1079c
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 e922d8447ec3 -r 74ab2ed1079c 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