Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp570327ybl; Sat, 18 Jan 2020 06:23:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwpBpXYnv658EqupPMkbYwwjmJCCT7IR3puFYS6I1Ne5C4+zlmiEPCtxWqxrEK8zCHApKQ8 X-Received: by 2002:aca:3846:: with SMTP id f67mr6950526oia.61.1579357416211; Sat, 18 Jan 2020 06:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579357416; cv=none; d=google.com; s=arc-20160816; b=JKWogYo5cFxpJgvoxxH1Ptx+Bt0af4/N0n9DFh7NBEE5ArKFsq7tF6xhndRpxRZ8sS GjQZ/wcQ/ykzz2kS01+NtMWagbSxtdX//pexQTMzKYsHrYDHhbZ08T+ass/U0hUXcvqF p4P8imFsQIWUdKsYffqmC9abaAlbDLDqSATxrOrZ981CQT2qzd3C6/Oq3peXr6dvxG0n IXI+dMTk1zGRq/liUCZ0O81G6GnvaPDHxoUnYUGFgf5L8tBDqX2+30IRhWe8mFTUTrkQ oa/JS8Gds8hyxawUYNKuz2Je2wotHKgtiLb9STHJC2QeLsePioEJcDm+QTqIkOZht9MX TH6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WctY23THrNdps/s8P9n4k5PjagfwbuJvQKViHF9ukvc=; b=qUBlyGkOTWSmCjvPQnYqhQ9oD4qH2hdSqHZvGYwJbJsWS1s7Wq8fGn7fi9KnCGkgE1 aU7XVVqFIHbVSmK2LQ5Nfoz+rIjaEgR7C8+CpX65OJq/Lah3lSVwbvN2YPI6GgABgTXG fOVorzXKal1ECL/Gz0tbWy9DJ2YZzYbk83g8Eil73m8Za4/BYJeRJQinYdbKIrzpVKR5 dcswjxywc4EP4zEyIM36Xdht0boJKQmsTLRqQ/QLoDkx8YwswgpU8lKBxtR7/3oo45fk d+BZ+XDKYOoPgBF253j+cLzpP7C/ckuUeqj+0KnoxYwwv6nMkTX4CJ0rfY0XSWjDABIS LVSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2F4p9QMA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si15302449oiy.97.2020.01.18.06.23.21; Sat, 18 Jan 2020 06:23:36 -0800 (PST) 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=@kernel.org header.s=default header.b=2F4p9QMA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbgAROWS (ORCPT + 99 others); Sat, 18 Jan 2020 09:22:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgAROWS (ORCPT ); Sat, 18 Jan 2020 09:22:18 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DD87A2469A; Sat, 18 Jan 2020 14:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579357337; bh=JrvLwcwKSbaYduAx1j/+g7iO4bO/gKI4RPpGC3Yexg0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2F4p9QMA24NQEzvX8OMBVSJIXSbPlzCAGzcy7QK5fdv+s54Bng2xUXf16+eqBBPak F4JrGFYDJ/Vsq2R+jFQ2rTEUstN43mvE352lpE1zuRvwXNzyJllpx7bvQL1MrpGvzH bfcTjg1H+8ckLLEdj7MCzWokAPBgoAi6Aq+5l65U= Date: Sat, 18 Jan 2020 14:22:12 +0000 From: Jonathan Cameron To: Fabrice Gasnier Cc: , , , , , , , , , , Subject: Re: [PATCH] iio: adc: stm32-adc: don't print an error on probe deferral Message-ID: <20200118142212.55ea44fd@archlinux> In-Reply-To: <1578921539-6353-1-git-send-email-fabrice.gasnier@st.com> References: <1578921539-6353-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jan 2020 14:18:59 +0100 Fabrice Gasnier wrote: > From: Etienne Carriere > > Do not print an error trace when deferring probe for some resource. > > Signed-off-by: Etienne Carriere > Signed-off-by: Fabrice Gasnier Applied. Thanks, Jonathan > --- > drivers/iio/adc/stm32-adc-core.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c > index 97655d7..2df88d2 100644 > --- a/drivers/iio/adc/stm32-adc-core.c > +++ b/drivers/iio/adc/stm32-adc-core.c > @@ -688,7 +688,8 @@ static int stm32_adc_probe(struct platform_device *pdev) > priv->vref = devm_regulator_get(&pdev->dev, "vref"); > if (IS_ERR(priv->vref)) { > ret = PTR_ERR(priv->vref); > - dev_err(&pdev->dev, "vref get failed, %d\n", ret); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, "vref get failed, %d\n", ret); > return ret; > } > > @@ -696,7 +697,8 @@ static int stm32_adc_probe(struct platform_device *pdev) > if (IS_ERR(priv->aclk)) { > ret = PTR_ERR(priv->aclk); > if (ret != -ENOENT) { > - dev_err(&pdev->dev, "Can't get 'adc' clock\n"); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, "Can't get 'adc' clock\n"); > return ret; > } > priv->aclk = NULL; > @@ -706,7 +708,8 @@ static int stm32_adc_probe(struct platform_device *pdev) > if (IS_ERR(priv->bclk)) { > ret = PTR_ERR(priv->bclk); > if (ret != -ENOENT) { > - dev_err(&pdev->dev, "Can't get 'bus' clock\n"); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, "Can't get 'bus' clock\n"); > return ret; > } > priv->bclk = NULL;