Skip to content

Commit

Permalink
thermal: of-thermal: Reduce log level for message when can't fine the…
Browse files Browse the repository at this point in the history
…rmal 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>
  • Loading branch information
Jiada Wang authored and Eduardo Valentin committed Nov 16, 2015
1 parent bb404db commit 2852498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/of-thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2852498

Please sign in to comment.