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 <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
This commit is contained in:
Jiada Wang 2015-11-16 17:10:05 +09:00 • committed by Eduardo Valentin
commit 285249884e

View 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;
}