瀏覽代碼

thermal: of-thermal: Reduce log level for message when can't fine thermal zone

Some systems register thermal zone by themself and don't need to
have thermal zones node in DT. Therefore reduce the log level from
ERROR to DEBUG when thermal zone node can't be find in
of_thermal_destroy_zones().

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Jiada Wang 9 年之前
父節點
當前提交
285249884e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/thermal/of-thermal.c

+ 1 - 1
drivers/thermal/of-thermal.c

@@ -964,7 +964,7 @@ void of_thermal_destroy_zones(void)
 
 	np = of_find_node_by_name(NULL, "thermal-zones");
 	if (!np) {
-		pr_err("unable to find thermal zones\n");
+		pr_debug("unable to find thermal zones\n");
 		return;
 	}