From patchwork Fri Dec 12 14:14:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 5484691 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 D44D7BEEA8 for ; Fri, 12 Dec 2014 18:27:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1ABAD201DD for ; Fri, 12 Dec 2014 18:27:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0DA1D200F0 for ; Fri, 12 Dec 2014 18:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759413AbaLLS1I (ORCPT ); Fri, 12 Dec 2014 13:27:08 -0500 Received: from mail-qa0-f54.google.com ([209.85.216.54]:63343 "EHLO mail-qa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932399AbaLLS1E (ORCPT ); Fri, 12 Dec 2014 13:27:04 -0500 Received: by mail-qa0-f54.google.com with SMTP id i13so5620089qae.27 for ; Fri, 12 Dec 2014 10:27:03 -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=Get6vaBMJYciX/J6eBjud8TxLhdmkro1MmK4L0c6HLI=; b=bGcGAIoQB+iWPgzAdyRY1jXj4Zd1bkWGhwlyrEU2thojaWubRy6Zt0rFvN42mF8rAa bW6hnQhiz1oWL4hSVRfgOq7DUMIS8A4Ps36YcylBZE9SVhkqK6Qn7rbatRrjTKWct3rs 3ul1vRyOFys3QqWz4Qz+T95lybTW+TWrXUUuQSOrWW7ad/rNJbGDyMqHybxz7DaGncQ6 wY6TlSzMOpPft4GeOwUXOLxVCKCqyDCWZPKhGYchBhO5lk+i5HKmqC+MXDk/N03Bzy2k yQAWv+1KL6X7Mu66RDpfket966M76mb2K+M1e+9Pn2Fvw4XzuYZUmIRImgTLbNAHMk3y QPAQ== X-Received: by 10.140.44.97 with SMTP id f88mr31092539qga.88.1418408822855; Fri, 12 Dec 2014 10:27:02 -0800 (PST) Received: from localhost ([201.75.27.229]) by mx.google.com with ESMTPSA id s2sm2047106qam.45.2014.12.12.10.27.00 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 12 Dec 2014 10:27:01 -0800 (PST) From: Eduardo Valentin To: Linux PM Cc: LKML , Eduardo Valentin , Zhang Rui Subject: [PATCH 2/2] thermal: ti-soc-thermal: Do not print error message in the EPROBE_DEFER case Date: Fri, 12 Dec 2014 10:14:25 -0400 Message-Id: <1418393665-16850-3-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 ti-soc-thermal thermal driver. Cc: Zhang Rui Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 5f07d7e..096fb21 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -405,9 +405,14 @@ int ti_thermal_register_cpu_cooling(struct ti_bandgap *bgp, int id) /* Register cooling device */ data->cool_dev = cpufreq_cooling_register(cpu_present_mask); if (IS_ERR(data->cool_dev)) { - dev_err(bgp->dev, - "Failed to register cpufreq cooling device\n"); - return PTR_ERR(data->cool_dev); + int ret = PTR_ERR(data->cool_dev); + + if (ret != -EPROBE_DEFER) + dev_err(bgp->dev, + "Failed to register cpu cooling device %d\n", + ret); + + return ret; } ti_bandgap_set_sensor_data(bgp, id, data);