From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbbKPILb (ORCPT ); Mon, 16 Nov 2015 03:11:31 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:63590 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751397AbbKPILZ (ORCPT ); Mon, 16 Nov 2015 03:11:25 -0500 From: Jiada Wang To: , CC: , , Subject: [PATCH] thermal: of-thermal: Reduce log level for message when can't fine thermal zone Date: Mon, 16 Nov 2015 17:10:05 +0900 Message-ID: <1447661405-28903-1-git-send-email-jiada_wang@mentor.com> X-Mailer: git-send-email 2.4.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/thermal/of-thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index 42b7d42..be4eedc 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; } -- 2.4.5