thermal: of-thermal: Reduce log level for message when can't fine thermal zone
authorJiada Wang <jiada_wang@mentor.com>
Mon, 16 Nov 2015 08:10:05 +0000 (17:10 +0900)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 16 Nov 2015 18:49:17 +0000 (10:49 -0800)
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>
drivers/thermal/of-thermal.c

index 42b7d4253b9446511150c6b599ac548f82e04f1a..be4eedcb839ac22158fe180c2abc37df712d9511 100644 (file)
@@ -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;
        }