From patchwork Thu Dec 11 21:11:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5477611 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C963FBEEA8 for ; Thu, 11 Dec 2014 21:12:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDCAC201C8 for ; Thu, 11 Dec 2014 21:12:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D9F520103 for ; Thu, 11 Dec 2014 21:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933560AbaLKVMg (ORCPT ); Thu, 11 Dec 2014 16:12:36 -0500 Received: from mail-qa0-f50.google.com ([209.85.216.50]:35963 "EHLO mail-qa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933335AbaLKVMg (ORCPT ); Thu, 11 Dec 2014 16:12:36 -0500 Received: by mail-qa0-f50.google.com with SMTP id w8so4180957qac.37 for ; Thu, 11 Dec 2014 13:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=thCI13opSQhpsHD4E0EqLAVwp5g0TxLF2/5+R7N4+h4=; b=QvIyJlaBSTn/giyAVuyU/s4B7OKvLUJnV9qNSCyeLf6zRA2+aKHUhg2odx3I5jif1D BqJPVJs982pu6vIuRDmIUy1QgbOOadl8hzqYTLpiCBvDB5KOWLI8gUqj7YrXeQ2c5pah JmUOdUje0MzHWitAxyOdhR5Co1iUKWlg4JaN3pN3mqkTbrwNosKYyZq+WyZaxW5iahxS i5iEFnYEa0QKacsY3lh3UxGrG3k3nsDVjBeHUZU5nHay0+lghi9yxy88zeh0MdnuorWR oyOlb8UUWKld22Oatt0UE7yd6ebcFqeC49STJKayRwNwiUC0UMX9f+dbjH0DTassvSgd 0kwg== X-Received: by 10.140.104.212 with SMTP id a78mr6901795qgf.43.1418332345821; Thu, 11 Dec 2014 13:12:25 -0800 (PST) Received: from localhost.localdomain ([201.82.52.106]) by mx.google.com with ESMTPSA id k4sm2152193qaf.0.2014.12.11.13.12.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Dec 2014 13:12:24 -0800 (PST) From: Fabio Estevam To: edubezval@gmail.com Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, Fabio Estevam Subject: [PATCH] thermal: imx: Do not print error message in the EPROBE_DEFER case Date: Thu, 11 Dec 2014 19:11:40 -0200 Message-Id: <1418332300-7859-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam During imx_thermal probe we have the following log: [ 1.514819] imx_thermal 2000000.aips-bus:tempmon: failed to register cpufreq cooling device: -517 [ 1.515064] platform 2000000.aips-bus:tempmon: Driver imx_thermal requests probe deferral Avoid printing the error message in the EPROBE_DEFER case. Signed-off-by: Fabio Estevam --- drivers/thermal/imx_thermal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index bb08d6e..c1188ac 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -513,8 +513,10 @@ static int imx_thermal_probe(struct platform_device *pdev) data->cdev = cpufreq_cooling_register(cpu_present_mask); if (IS_ERR(data->cdev)) { ret = PTR_ERR(data->cdev); - dev_err(&pdev->dev, - "failed to register cpufreq cooling device: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, + "failed to register cpufreq cooling device: %d\n", + ret); return ret; }