From: Jiada Wang Date: Mon, 16 Nov 2015 08:10:05 +0000 (+0900) Subject: thermal: of-thermal: Reduce log level for message when can't fine thermal zone X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=285249884ec19480f99c011d223760bb1fc865a2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 42b7d4253b94..be4eedcb839a 100644 --- a/drivers/thermal/of-thermal.c +++ b/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; }