Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp832274pxu; Sun, 25 Oct 2020 18:52:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDChxcVSQSpr2Pe76PRFoOKtcKPTKim9O1cdcl8w3RBRy1E8/bIV1sWxuHfiLZyNrVO7/E X-Received: by 2002:a17:906:e292:: with SMTP id gg18mr13483136ejb.278.1603677163328; Sun, 25 Oct 2020 18:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603677163; cv=none; d=google.com; s=arc-20160816; b=CU9esq0Sbk9Tln+hBJwc8CdFAhkv4zOvDKk5e2pJ3AdgvizZCwkYWO9N4aYDy7z3ma 1f62yHZxG9BZUvv7YTxxPiz3vUyqGjhkzKEsYVArU58VpXLZ5UPQQVmM1UNvn+Rz1HLo 1QZPC328sJg7Q8vycO45B0kLoP9ycSNen7fvOA/nJ7voxgh8TkXPpgFtXlxzcZyS3+AD CUv2/6dClmgtpDX6H/PJbKL10vAcZhCz5+DIXWVn9sVwqFhHpC3BDz+8WBZ/M2qm3Uc6 lHB8Ud0BHOB+J2Ekk/sguR+Z7dtKnWxIp6L0aP2meMMm9v6zbr/e/SULko4NeTXKq3w6 XGCA== 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=zP8wlyQsrquUXl8RVAlWCiQmUgoZ1Odmn7sqJkdmIO4=; b=g41elyQUQLLAyumddB/QtwvbC1uOoI5H3cAIT4i+ZRzO3k5E0YeWlWxdOj5za5g+3A qEusyn/HcLJ04YdS1E13RD9mMq7x4dOI+R2zg53wXLTiQkiFjHu8THFihKzxpoYIOT3Q IFX0hPgjQtRW3n8mZOQQ89OVXSkqXrh9B0Lei6uzyA/Ci4Cg0XZ/NwywQjcphgQnmV2h i6DA+bE23BZirvRnfo7mU1mGZnu2LSt9ab5wvQF5yVjjO26jrCMbWaMGA++qriHxLoxx wKdIMxQTjS2589k2lwVy6Be+f4VCpM+8EgH7uGqWvDXnSc++H+SZvw91U2aB35k5OK+d 9nhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M3+RAmcu; 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 op13si6068825ejb.645.2020.10.25.18.52.21; Sun, 25 Oct 2020 18:52:43 -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=M3+RAmcu; 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 S1419656AbgJYWUq (ORCPT + 99 others); Sun, 25 Oct 2020 18:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1419373AbgJYWSr (ORCPT ); Sun, 25 Oct 2020 18:18:47 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8CB6C0613D0; Sun, 25 Oct 2020 15:18:46 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h20so7722053lji.9; Sun, 25 Oct 2020 15:18:46 -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=zP8wlyQsrquUXl8RVAlWCiQmUgoZ1Odmn7sqJkdmIO4=; b=M3+RAmcuQgmuqGWbrQzhYMev5R7cBfQeEh8ZhJaPmZnvlCc2L8LNcmcI96FHgaooG8 cqQfqY+faXiwP641RsFaoLRXKklHvqLaBqVAudP3wHQ0tLR53cwxQR7yuDsYqyLS7Yfg 4uLrBNL+8ckoP+VKXICnwNTzx62mHT5JOYzFUOuK6GZn6QUX/F4mJX+eVmzHVpQHrh3Q CQsos3a36qo7UnhL3VvPpErYDDfbYY/fqclctOYt2icC8fGc+3C7FNpN1b9PFYUjZrRc DXbg2WBTb4+ueJkTUqt1GsfuuZvpiqo9dxw3Oht4PVyxcvUspfD4/EHM/ZLPRTsLw4V+ rC2g== 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=zP8wlyQsrquUXl8RVAlWCiQmUgoZ1Odmn7sqJkdmIO4=; b=PT7Io1TtUq9qVwis2TdteQyQb8VCdZOUG21jAcqXzibjLBeEwPsPXtXEJAmjIbSoC9 7TaLslA/fKdUEf79AigPwRlBdRXnGbHTESJUlQrdeBNc3kM7eEDenvr0MLhz/lqZdbYq rOoyaIFSpVdRDQNoDeGXSLiy/NFqMDF/JbC8NFjo7VBfWjltyUK9HpHfe/OTKQV8Z6Y7 pgcfFfVvgzahW0yqnVfxPB3pi0PRjGIwsfUppoxYi/oIqGljQb1aoM/pNC3Gom8KLD+c gR98tW35enrgkf2eo/vYphc0vA6FuqRziQOl4EAIH7vlB3c/N2HbA0TcJgemi/PGbiSM xbjQ== X-Gm-Message-State: AOAM532gLoSdPg8cz59gR1Yu1ubcFoXw1+jR5NpWxnUlTeK/7+vxj7ux WOPfXWCu1YnleT3cCn0SoKw= X-Received: by 2002:a05:651c:1343:: with SMTP id j3mr4297239ljb.336.1603664325229; Sun, 25 Oct 2020 15:18:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 15:18:44 -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 50/52] PM / devfreq: tegra30: Silence deferred probe error Date: Mon, 26 Oct 2020 01:17:33 +0300 Message-Id: <20201025221735.3062-51-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/tegra30-devfreq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c index f5e74c2ede85..3f732ab53573 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -801,10 +801,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev) } tegra->emc_clock = devm_clk_get(&pdev->dev, "emc"); - if (IS_ERR(tegra->emc_clock)) { - dev_err(&pdev->dev, "Failed to get emc clock\n"); - return PTR_ERR(tegra->emc_clock); - } + if (IS_ERR(tegra->emc_clock)) + return dev_err_probe(&pdev->dev, PTR_ERR(tegra->emc_clock), + "Failed to get emc clock\n"); err = platform_get_irq(pdev, 0); if (err < 0) -- 2.27.0