Received: by 10.192.165.156 with SMTP id m28csp551794imm; Thu, 19 Apr 2018 03:43:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Cspa63OaQ/9r/QYpkn3L4ZF3svUbFW/BDE/m9daOcAB/7asjtmrlJiwVBElloTuvpBwkD X-Received: by 10.98.102.79 with SMTP id a76mr5351044pfc.162.1524134613779; Thu, 19 Apr 2018 03:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524134613; cv=none; d=google.com; s=arc-20160816; b=yKJ7sk7C+E9gHZsz0WlsNiP+9O25kDE53xxVrIlL9MTdxh4F1Tapsi57HL+OpgKv6F jNIqOgV7BCw/hDZGX6uDdbfTWoEq/E0V7jKxBoBrGBc/kAQkuo+9MgDmS737rsqEdakm Own5Rr90U04igyBZIbH/RS/kOwYiP44ZbTHjK/e83NWeDuQoJGRGJh0GqP6RTpbyRfke P5DSOunMAI5eLHH7h8WeHzZ8Bp8LLUXQ2Ped0oVvrk01qWfynCGxsRQk1rbSEdG1DDuQ e2E+W1FbHvNBUzMBJSVHpsewURkMmxTehgDVaB5mPuCB7YvR+jNg06BSU3SSTkhaYsG5 TDhQ== 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=z6SFaX3Pw2X33LXrdC//J9Mg+oKmxCvfvasKY90M4to=; b=QJc+Qkm/6bQOyBrmHThtGKolD9gWatas10TGrj8vpDsYVRxz1MLZyawrdUamWkOVkc 6rw1M+90DgLwkmBlOpzwK5t986iigk8Yh3/kAIGsevrJG3Uc3Ti5jga7qeMnLm4aoU2M tuSjCjVYwAbm1AdPgkAxwI+tEiPLoBAxXxyn7LXUEJnQeIAS4oL+OUOP4cFAtjA5WKgZ h/+qLN52zwEdqAGHeu20hUINPDJRemwM+TwE3XEOkxwJ39vwxFWtrhCb2LNpB5WwA5hl +Funw/zrY60sMA4WBG1qCFTLSBGAwWIO1tT5g7rlLRc07f7QbpSxpTauS1DI2FrvOS6Q RXXQ== 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 c2-v6si3330604pli.0.2018.04.19.03.43.19; Thu, 19 Apr 2018 03:43:33 -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 S1752748AbeDSKli (ORCPT + 99 others); Thu, 19 Apr 2018 06:41:38 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35032 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbeDSKk4 (ORCPT ); Thu, 19 Apr 2018 06:40:56 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id DE32B27CA43 From: Enric Balletbo i Serra To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, heiko@sntech.de, linux-pm@vger.kernel.org, dbasehore@chromium.org, linux-kernel@vger.kernel.org, dianders@google.com, groek@google.com, kernel@collabora.com, Lin Huang , Chanwoo Choi Subject: [PATCH 5/6] devfreq: rk3399_dmc: do not print error when get supply and clk defer. Date: Thu, 19 Apr 2018 12:40:18 +0200 Message-Id: <20180419104019.24406-6-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419104019.24406-1-enric.balletbo@collabora.com> References: <20180419104019.24406-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 --- 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