From patchwork Mon Aug 26 20:43:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 172216 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4863627ily; Mon, 26 Aug 2019 13:45:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz099Djs8WClvnw00gp44rjN3fMEDlbflgCSzq3EdYOV/EdT+O5khx1D9AjnfIMrCA49EBG X-Received: by 2002:a65:52c5:: with SMTP id z5mr18271600pgp.118.1566852348607; Mon, 26 Aug 2019 13:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852348; cv=none; d=google.com; s=arc-20160816; b=guNfJiy3sl81Z0BZRJf0ntbHQkbIWMR9GFSXMIdTgOEdenKzb/GAT1VZgMtvkWloEO ap5T1rhfAHwNFFHPhmxMPFugR0fDe8KIHQGDAgyHAK/X/fCoImwXLby2AWJeziuB90wO hSVpTgKgJdihIlCoKiFJfx8gX/DIspPLxPK23xZiHl5HMXHkWMFet/3L/eprkzzDu+S1 qkkWIAOTBK+KpaTYX4p+GJQRDoGL42FJdNJWIKGMtcRkWZ3ynNWNPc/Ku4seaqYMktQT KoJaBcyYdVrBLYX+LuzoDWRbietlwvRpZ0Hl2AP9x2WyblMoOZ8mkPQTfKe5BbQ4F88O KGag== 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:dkim-signature; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=qmcST2MT68uV8WKukKsuvHUcHTyLKfqgR6KvfKA0o7PbxuMjTKD5J8eCEAnWXhZRRF RBknI0x8Zo57UXcrcB7Sp+SaY/ySnCg0g6T4fmWrpwxky+WrpyMh2s8A8I5t9OmNDvWr 8eV8VcsTquRsy1pDUepfnjxBM6746CSh43nGSAtKt8DprgCAHtV2YEXMtC3n5G8/bXC/ bSrTH1ZyPPtFOc86rylB7hh2knC2swgoWUXmH2GjK/xHM975SbPGzWNi9kvw4siGWT5m vrL68UMH3LpeZDuNINFhK5Kqzv36KCWlRgnvhvi1ZkQcTabshrNz+AmfKpfcig4scSLO cwSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eK+nQS2A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si576523pjb.36.2019.08.26.13.45.48; Mon, 26 Aug 2019 13:45:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=eK+nQS2A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731976AbfHZUpr (ORCPT + 28 others); Mon, 26 Aug 2019 16:45:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40773 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731260AbfHZUpK (ORCPT ); Mon, 26 Aug 2019 16:45:10 -0400 Received: by mail-wr1-f65.google.com with SMTP id c3so16579857wrd.7 for ; Mon, 26 Aug 2019 13:45:09 -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:in-reply-to:references; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=eK+nQS2Aoko7nn/Hwp8NG6xTWIMU9o7rsicA86jWI/hqnzHtvX3hsz6Ozex+GBWt+1 n09i1jpu0+/k02Si8KuL1CL0dPvxc8HnoMdSyP9EQMaKQnNS6rGt8zfn02dt0yM2Gq8C ITkdGB2Hyw5QnhRuq24WDfIQ0C08oQRC+1DLJ/ZpiX5JYqTkOYJZo+iNgGsqarOUUONq UfYb2Va+E/KbHQo3wes0PeRNkqOPKVJFA/kRJx+Z8MO5iu0hatSrc/DdUxGPgt5CA+5i t9gCRLV0h8FyGI6Wc52Mth900QYGf8bQoqcHxKpE3c8Gx/FIXEAFTGnLH5czmj7ZX+g1 rw6Q== 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; bh=3NlsbaVmcGi3otv9ZJ2fHYs8AFKgSTfNTic8ebJ9pLc=; b=l4YeKbvm3ooys9vrnlucxDCTEzEj/2aBy9HaSlTL7rQsfd4Y7j/P83eoL+YLR6sLWq ygz5AQpKVLcXHAPNKNl3qJMmjO/kKgyQPhG31qPPNMnEMugW9VJI1IyQUNZK/pJhezUQ hHCTxtongAzmJssEzO/cpMam/Gy+ZTCwPQfBufXBlcC02ph4UQaU6nv2XFymdzYbXHFU x28JT13f5nYPzCKENMEQ9tjYJbx3q9tEhpgXU2itsjEmZHcENrp46fOUvx8ThJmYskXO +e5DAKRAwlJ8jsHtA0b2h7dE+A8Xc0Qrrx92wVZ67gRyS+V9mUqF42Cv03f1bCA9mHR3 DNQQ== X-Gm-Message-State: APjAAAVBESW3M9eC1DZBXxvycIKkWqIi5HmOETCc6MU8LkvPE8KCljLz ivLMXLlnRw8g56g2tqWpx058gw== X-Received: by 2002:adf:f844:: with SMTP id d4mr25413725wrq.128.1566852308552; Mon, 26 Aug 2019 13:45:08 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:f881:f5ed:b15d:96ab]) by smtp.gmail.com with ESMTPSA id 20sm549557wmk.34.2019.08.26.13.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 13:45:07 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Jon Hunter Subject: [PATCH 12/20] clocksource/drivers/timer-of: Do not warn on deferred probe Date: Mon, 26 Aug 2019 22:43:59 +0200 Message-Id: <20190826204407.17759-12-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826204407.17759-1-daniel.lezcano@linaro.org> References: <20190826204407.17759-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter Deferred probe is an expected return value for clk_get() on many platforms. The driver deals with it properly, so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-of.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 80542289fae7..d8c2bd4391d0 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -113,8 +113,10 @@ static __init int timer_of_clk_init(struct device_node *np, of_clk->clk = of_clk->name ? of_clk_get_by_name(np, of_clk->name) : of_clk_get(np, of_clk->index); if (IS_ERR(of_clk->clk)) { - pr_err("Failed to get clock for %pOF\n", np); - return PTR_ERR(of_clk->clk); + ret = PTR_ERR(of_clk->clk); + if (ret != -EPROBE_DEFER) + pr_err("Failed to get clock for %pOF\n", np); + goto out; } ret = clk_prepare_enable(of_clk->clk);