From patchwork Fri Dec 12 14:14:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 5484711 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 CB941BEEA8 for ; Fri, 12 Dec 2014 18:27:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3D5F201EF for ; Fri, 12 Dec 2014 18:27:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B69E200F3 for ; Fri, 12 Dec 2014 18:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752179AbaLLS07 (ORCPT ); Fri, 12 Dec 2014 13:26:59 -0500 Received: from mail-qc0-f182.google.com ([209.85.216.182]:40420 "EHLO mail-qc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932399AbaLLS06 (ORCPT ); Fri, 12 Dec 2014 13:26:58 -0500 Received: by mail-qc0-f182.google.com with SMTP id r5so5999392qcx.13 for ; Fri, 12 Dec 2014 10:26:57 -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:in-reply-to:references; bh=Jr//woOtqICI2CwXqUWCBebb41gPnoxS6uHIwMVpT2k=; b=PpB5BmFSJG9w+Bh7WkiEz8OB0KlIPtHw7ebcQTtTPVNcl78O+TdgIGU1xXkvTFKTdx vHpzsblj6TbwrFJUQtzFy9mFEHU8+tEpFTTjNCtdDkoR/jQFuquka33mxMgjasdse3GU Uqkdyf9eoS/nHvfl93e1/WU7xbMiENvSNNQnwTQkRKyFXEM6JC1glgjSRFylpl9eWAM0 9EN4HfsnSG00JxOY7Mr0nJsfihu7nFcA6Lm0W2BDJZbOUsDg2oIiI+0fPw/HijnQxkFb wXF7h8R/3xV2aIpzbFmxXF5OOZJ0R6Bf5WbzEKtnlCrgA7RY9Xr62ZV7s26ORAHjd+2k 2/Ag== X-Received: by 10.224.65.134 with SMTP id j6mr33265268qai.90.1418408815946; Fri, 12 Dec 2014 10:26:55 -0800 (PST) Received: from localhost ([201.75.27.229]) by mx.google.com with ESMTPSA id l10sm2070268qas.25.2014.12.12.10.26.53 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 12 Dec 2014 10:26:54 -0800 (PST) From: Eduardo Valentin To: Linux PM Cc: LKML , Eduardo Valentin , Zhang Rui , Grant Likely , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 1/2] thermal: db8500: Do not print error message in the EPROBE_DEFER case Date: Fri, 12 Dec 2014 10:14:24 -0400 Message-Id: <1418393665-16850-2-git-send-email-edubezval@gmail.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1418393665-16850-1-git-send-email-edubezval@gmail.com> References: <1418393665-16850-1-git-send-email-edubezval@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DATE_IN_PAST_03_06, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Avoid printing the error message in the EPROBE_DEFER case where registering cpu cooling at db8500 thermal driver. Cc: Zhang Rui Cc: Grant Likely Cc: Rob Herring Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/db8500_cpufreq_cooling.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c index 3cc3dd9..28bbff9 100644 --- a/drivers/thermal/db8500_cpufreq_cooling.c +++ b/drivers/thermal/db8500_cpufreq_cooling.c @@ -30,8 +30,14 @@ static int db8500_cpufreq_cooling_probe(struct platform_device *pdev) cdev = cpufreq_cooling_register(cpu_present_mask); if (IS_ERR(cdev)) { - dev_err(&pdev->dev, "Failed to register cooling device\n"); - return PTR_ERR(cdev); + int ret = PTR_ERR(cdev); + + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, + "Failed to register cooling device %d\n", + ret); + + return ret; } platform_set_drvdata(pdev, cdev);