From patchwork Tue Jul 17 20:48:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 10530627 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2088960247 for ; Tue, 17 Jul 2018 20:48:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 137092931E for ; Tue, 17 Jul 2018 20:48:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 079FF29357; Tue, 17 Jul 2018 20:48:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED6D32931E for ; Tue, 17 Jul 2018 20:48:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729755AbeGQVXL (ORCPT ); Tue, 17 Jul 2018 17:23:11 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46546 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729741AbeGQVXK (ORCPT ); Tue, 17 Jul 2018 17:23:10 -0400 Received: by mail-lj1-f196.google.com with SMTP id 203-v6so2134360ljj.13 for ; Tue, 17 Jul 2018 13:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TEYLHn3Em3F8lMdklBwGwg4oTVeokHET29KN89ga/S4=; b=V0r0g4nvHThLDB1BUWIDZKU/78FtREFTmrLBcVE4a37GL/w+l7cgFm6qG0lT2gbdQ3 fK8Z7M+W5jswuUYsrkenKoxKkZDRAaavjR618Oi0BT+Jo/rzIpMdalHLu//7i1kxEg3T PbW+9OtuhJ1+72uszeG0Q5oR4uVer+jv7KERE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TEYLHn3Em3F8lMdklBwGwg4oTVeokHET29KN89ga/S4=; b=NK+kGhB4ZcyurBLCUByH174oxDwxeZ9cupm7bbQVSrCObgM6iYn3ZI+etcwlEbhgoj h6wMJoYhKHJsG9Q4BZ4z5lgO3cnk6OrxU3w5lE5c+QfLy50NJi15/Daa8qZ6o+glT8bu BpqA1+PLY3hioC4lF7FRxiQBHUkIS1BhXv9fkVo4LNTADaUMRc42zvp0MlKeGovE8m+V JkhbW+1i4uZ43j8PH8gds3bq+rnZb3JI6OytvRdvmF8uUIPEMl5nUrgvjHVq8uWjtKMF PBuzfQooxsPq5pG0r9bDsrPdYch2eBKAR4ap7iXuLElKDGdBBTWj/Ow4Whht5solKYGA ztLg== X-Gm-Message-State: AOUpUlGHbupdnhDMB+h9CRujwVpuy0fywph3guuj7Jd63/M6yy96ya3O /AWFixDi46VB97L+YyH1gOCo9g== X-Google-Smtp-Source: AAOMgpcIagOELfYPFjTBz/CH63RH8msZI6XwxYL76cWTrgcIsPVoU9P+x9HfBA/QN3EDaZF+f7+rpA== X-Received: by 2002:a2e:1609:: with SMTP id w9-v6mr2464771ljd.120.1531860526222; Tue, 17 Jul 2018 13:48:46 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id a16-v6sm310820ljj.28.2018.07.17.13.48.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 13:48:45 -0700 (PDT) From: Niklas Cassel To: Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-arm-msm@vger.kernel.org, Niklas Cassel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: qcom-kryo: Silently error out on EPROBE_DEFER Date: Tue, 17 Jul 2018 22:48:21 +0200 Message-Id: <20180717204821.15987-1-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If of_nvmem_cell_get() fails due to probe deferal, we shouldn't print an error message. Just be silent in this case. Signed-off-by: Niklas Cassel Acked-by: Viresh Kumar Reviewed-by: Amit Kucheria --- drivers/cpufreq/qcom-cpufreq-kryo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/qcom-cpufreq-kryo.c b/drivers/cpufreq/qcom-cpufreq-kryo.c index 29389accf3e9..b8d1e6875f16 100644 --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c @@ -109,8 +109,9 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) speedbin_nvmem = of_nvmem_cell_get(np, NULL); of_node_put(np); if (IS_ERR(speedbin_nvmem)) { - dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", - PTR_ERR(speedbin_nvmem)); + if (PTR_ERR(speedbin_nvmem) != -EPROBE_DEFER) + dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", + PTR_ERR(speedbin_nvmem)); return PTR_ERR(speedbin_nvmem); }