Module Name:    src
Committed By:   jmcneill
Date:           Fri Sep 22 15:33:21 UTC 2017

Modified Files:
        src/sys/dev/fdt: fdt_regulator.c

Log Message:
Print an error if we fail to acquire a regulator


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/fdt/fdt_regulator.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/fdt/fdt_regulator.c
diff -u src/sys/dev/fdt/fdt_regulator.c:1.3 src/sys/dev/fdt/fdt_regulator.c:1.4
--- src/sys/dev/fdt/fdt_regulator.c:1.3	Sat Apr 22 21:47:41 2017
+++ src/sys/dev/fdt/fdt_regulator.c	Fri Sep 22 15:33:21 2017
@@ -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 <jmcne...@invisible.ca>
@@ -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 @@ fdtbus_regulator_acquire(int phandle, co
 
 	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;
 	}
 

Reply via email to