Received: by 10.192.165.148 with SMTP id m20csp5487823imm; Wed, 9 May 2018 05:58:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo+gYilBCwEWxH72IL7i2mZI6Ra4ZcCcn2E8bA8ZJ4XthU/r2za3V3Lx7TwMyuTwo10CCkm X-Received: by 10.98.227.15 with SMTP id g15mr44169619pfh.68.1525870720925; Wed, 09 May 2018 05:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525870720; cv=none; d=google.com; s=arc-20160816; b=r1Tm7Ry1m3nUU98S0snlVVVmy8v5sK8izDxQaHbwkcDWNFCn/KK1kalWmm3rwAEcxb 3frLnM+yNtKBrYf3XcVYLrP4Wp9KFgH3XfRfxDNZGfgt+9j5VhETNDseWVeinCB4z4aT vwlG1AxvpNxunm5WNB/rOIdVh/Q1+Eyo6rRmj1uzHNN2NzYBs2kwenD+kW10WREhfLiz r4cImMFcAis+rpNa/bNa+s5G040GtIPGoNQig4sTJmcslScblaOdanbn1CIqHU6SEz4n OjIqGvT0NyXuVEZPXmSQzKqHj5u7fLWhndUX1GHbQrxEtFqoK1RZPnA4aTpyT/YOveUc dSSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=zvC+xkPxwHuPrqfEbww0vMRaRi/4ZOJV4YCHeWYwxmg=; b=cHAKgeyh5qLNOdWaP3wI9FUnvXc939LLIdWEtDs44vJ8od5NuDdfDVs4pbBeD4U2E7 dNwkU3x77xT4EpSA1w81WYxc9c1ckOArQWv2sM+FfXapqDDgvzzmr5lv1Op21xWGFPQe C/RNsLb3Y6JoEyTGnTNXfTxxPd9+dIZlY3VDr0Qtx3QAaLXb6vV+K8en6WGUnqBlaMGv qn0fiW1vfAwHHcfbTydpFwzhBv0ChED0eH7QDFylsls+u/AWI4AN4X3Shp2A20PYqkjd H/GfmeiPiXjCAEWiJV9Zk7MMUvPbyCv0ZZQjU6u6o4EsqlCt/WdDp804bJrR4n5pFAnw /iQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14-v6si19702677pgn.205.2018.05.09.05.58.25; Wed, 09 May 2018 05:58:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934939AbeEIM6H (ORCPT + 99 others); Wed, 9 May 2018 08:58:07 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55352 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934903AbeEIM6C (ORCPT ); Wed, 9 May 2018 08:58:02 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 846B6286FA0 From: Enric Balletbo i Serra To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, heiko@sntech.de, linux-pm@vger.kernel.org, dbasehore@chromium.org, linux-kernel@vger.kernel.org, dianders@google.com, groeck@chromium.org, kernel@collabora.com, hl@rock-chips.com, Chanwoo Choi Subject: [PATCH v4 5/6] devfreq: rk3399_dmc: do not print error when get supply and clk defer. Date: Wed, 9 May 2018 14:57:47 +0200 Message-Id: <20180509125749.31318-6-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509125749.31318-1-enric.balletbo@collabora.com> References: <20180509125749.31318-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lin Huang We just return -EPROBE_DEFER error code to caller and do not print error message when try to get center logic regulator and DMC clock defer. Signed-off-by: Lin Huang Signed-off-by: Enric Balletbo i Serra Reviewed-by: Chanwoo Choi Acked-by: MyungJoo Ham --- Changes in v4: None Changes in v3: None Changes in v2: - [5/6] Add Acked-by MyungJoo Ham. - [5/6] Add Reviewed-by Chanwoo Choi. drivers/devfreq/rk3399_dmc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 44a379657cd5..5bfca028eaaf 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -308,12 +308,18 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev) data->vdd_center = devm_regulator_get(dev, "center"); if (IS_ERR(data->vdd_center)) { + if (PTR_ERR(data->vdd_center) == -EPROBE_DEFER) + return -EPROBE_DEFER; + dev_err(dev, "Cannot get the regulator \"center\"\n"); return PTR_ERR(data->vdd_center); } data->dmc_clk = devm_clk_get(dev, "dmc_clk"); if (IS_ERR(data->dmc_clk)) { + if (PTR_ERR(data->dmc_clk) == -EPROBE_DEFER) + return -EPROBE_DEFER; + dev_err(dev, "Cannot get the clk dmc_clk\n"); return PTR_ERR(data->dmc_clk); }; -- 2.17.0