Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp815311pxu; Sun, 25 Oct 2020 18:15:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVNT/iBcNDfHGiVxjasIqZeKVAWG36e4GvUXyErJCsa9s+oW3qmHdrRV2/uk1GB1d/V299 X-Received: by 2002:a50:a683:: with SMTP id e3mr6934745edc.33.1603674906615; Sun, 25 Oct 2020 18:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603674906; cv=none; d=google.com; s=arc-20160816; b=LtX+YMsGop0qn6eHvj+MGwm+7I3LU/iRcDC/aAL3/zcSYr9krcFca5ZN9BdMZ8jKtK XpamRFhrihc6hXnvEfnysv7dUT2KjKhAnZPVYp3VTOyPXGmjv8ig170jO2Jav/U/2Yaq gRKh2/+iKi7pHu7ZLofgBJe2Eb3pajKLg9DnFlk6tJQvVpgd5l0oF9MQZnB2oekdYwYP zKmKSKqvfr7X/ZqLcb6tWPbg5gM2qvetmHLsWTUyRV6O2HdLWe2A0r8xoOVTBMPfHBF7 sySkvDU/rEb3BvRHjc/rELETJaCQ4UT2WW8f/psm7LgmxGyIVNbqQO/8sI+tarRYDRkY kM2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1PH48KfFXPwOSFrtxH/nqQ6/PkMkkNmgzsjXGDZ87+I=; b=gEO9Nv7eoNXb6imCP189dTRZx/X3NIQnq0bTSz+HggXnhQMNM4+2eU6SCA4CDwwQJK k8O6KvKR8XASTaTWmaVjXj5PysAuUo6eM9xuvr1Eq7suFf1Gy7QM7ZSoJZud4Q4OytPb DkRTlmdDCdq9Yxe45GNOmAnfoOt2d0b5ANp6k1pjspGoit73FzYmPliUuBGc5GbFCVVJ sosz4rxIV7Tu89AKf75VsBxD8ymPjAAI//q6p6sQEvoy0wzW6jZmkUWfFw27IuToxtxL vqygw4v3+Sze3QXBw1MJCtiZXf6cO5IK4S/gVJWwX0n3QFm697tt/XrABOp/u5NgL0hM EgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NU8o04tL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si5883090edw.389.2020.10.25.18.14.42; Sun, 25 Oct 2020 18:15:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NU8o04tL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1419463AbgJYWTT (ORCPT + 99 others); Sun, 25 Oct 2020 18:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1419365AbgJYWSn (ORCPT ); Sun, 25 Oct 2020 18:18:43 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47FD2C0613CE; Sun, 25 Oct 2020 15:18:43 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id l2so9444770lfk.0; Sun, 25 Oct 2020 15:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1PH48KfFXPwOSFrtxH/nqQ6/PkMkkNmgzsjXGDZ87+I=; b=NU8o04tLt1lEwiomFhKoT9cvrlR4P/69J4LCKbKBeOq8ftqqFhtH/wKXbuKi+IREf+ PbE/lmPcNo3gCjHGaWDSZX4LEcIv1u3oG2PQqB3X1KW3pR92MMZ8rYE9u9gxmWXoEDIS /Rdfeh4QSXZxtV5Rp1E029mhH56g9IAgUI1nozGp5tos2vVxy7iaTJlKn3V7I1ZDJK+W iZ5IWBC77EqAxZ8XzcHeHMJT32SVAGwMgKwkbI9+MSx/1L15bQm3JGdSXVDFBCBYndAx rbeUE+H9T+xIgto1QwDRnY0eE2kySXok2xwho32fMe3VvEzNs53FKm+1Mrtke21+FmKf Dotw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=1PH48KfFXPwOSFrtxH/nqQ6/PkMkkNmgzsjXGDZ87+I=; b=boXkhWCmx/79JoKrAsmyDi7uCOIpJPx+bkVNHCGEKpmP3r1ZMnjAsH6zHEW0Lr5Pup Xroc1wXYZYoxeVUocgPFYIJrhpXIsuN5mSMzihzWH2jx9g3JWW2zzl3dGPVrTedcA4od TRCJw8v0dzRogihq+9Wsy2xFOX2KMNXpYqgTKxwgsGaUIhDXc0yNLwaRyHnmX+vst56O uBQvknsHKDlt4+oAirtmP9i3dcYoEjb4e8uzOOLfvuoEQK15SnBS8loO4FYyxnst7Z6z 3zniIXJBrNbPGhdWQOglBWoW979kbQBInBPWjvyysbUmxrdvQolJnHADXIEZVksvejiA IwmQ== X-Gm-Message-State: AOAM532h6EvLrm9/K7zjLwLdJL36N6B/xULpkm/pztI2gIhgwdHuVxcd 9ht3Ann66tHtb3xeyNSP/ktTHAlpUqQ= X-Received: by 2002:a19:957:: with SMTP id 84mr3699671lfj.342.1603664321823; Sun, 25 Oct 2020 15:18:41 -0700 (PDT) Received: from localhost.localdomain (109-252-193-186.dynamic.spd-mgts.ru. [109.252.193.186]) by smtp.gmail.com with ESMTPSA id k13sm932423ljh.136.2020.10.25.15.18.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 15:18:41 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Georgi Djakov , Rob Herring , Michael Turquette , Stephen Boyd , Peter De Schrijver , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Mikko Perttunen , Viresh Kumar , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v6 47/52] PM / devfreq: tegra20: Silence deferred probe error Date: Mon, 26 Oct 2020 01:17:30 +0300 Message-Id: <20201025221735.3062-48-digetx@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201025221735.3062-1-digetx@gmail.com> References: <20201025221735.3062-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tegra EMC driver was turned into a regular kernel driver, meaning that it could be compiled as a loadable kernel module now. Hence EMC clock isn't guaranteed to be available and clk_get("emc") may return -EPROBE_DEFER. Let's silence the deferred probe error. Acked-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra20-devfreq.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/devfreq/tegra20-devfreq.c b/drivers/devfreq/tegra20-devfreq.c index ff82bac9ee4e..fd801534771d 100644 --- a/drivers/devfreq/tegra20-devfreq.c +++ b/drivers/devfreq/tegra20-devfreq.c @@ -141,11 +141,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev) /* EMC is a system-critical clock that is always enabled */ tegra->emc_clock = devm_clk_get(&pdev->dev, "emc"); - if (IS_ERR(tegra->emc_clock)) { - err = PTR_ERR(tegra->emc_clock); - dev_err(&pdev->dev, "failed to get emc clock: %d\n", err); - return err; - } + if (IS_ERR(tegra->emc_clock)) + return dev_err_probe(&pdev->dev, PTR_ERR(tegra->emc_clock), + "failed to get emc clock\n"); tegra->regs = mc->regs; -- 2.27.0