Module Name:    src
Committed By:   jmcneill
Date:           Sat Sep  1 23:41:16 UTC 2018

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

Log Message:
Don't print an error message for shared opp tables


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/cpufreq_dt.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/cpufreq_dt.c
diff -u src/sys/dev/fdt/cpufreq_dt.c:1.4 src/sys/dev/fdt/cpufreq_dt.c:1.5
--- src/sys/dev/fdt/cpufreq_dt.c:1.4	Sat Sep  1 19:36:53 2018
+++ src/sys/dev/fdt/cpufreq_dt.c	Sat Sep  1 23:41:16 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufreq_dt.c,v 1.4 2018/09/01 19:36:53 jmcneill Exp $ */
+/* $NetBSD: cpufreq_dt.c,v 1.5 2018/09/01 23:41:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.4 2018/09/01 19:36:53 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.5 2018/09/01 23:41:16 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -428,8 +428,9 @@ cpufreq_dt_parse(struct cpufreq_dt_softc
 	mutex_exit(&cpufreq_dt_tables_lock);
 
 	if (error) {
-		aprint_error_dev(sc->sc_dev,
-		    "couldn't parse operating points: %d\n", error);
+		if (error != EEXIST)
+			aprint_error_dev(sc->sc_dev,
+			    "couldn't parse operating points: %d\n", error);
 		return error;
 	}
 

Reply via email to