Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3939456ybl; Mon, 13 Jan 2020 05:21:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxPVF8CgiVHFZzujahY5LPw5Nl7qzfB3joH21PtS3w7C7GgLdPkvKSeU5XXHQrBopxRK+ci X-Received: by 2002:a05:6808:8ca:: with SMTP id k10mr12139527oij.164.1578921660031; Mon, 13 Jan 2020 05:21:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578921660; cv=none; d=google.com; s=arc-20160816; b=wpuQU+jakPCEFw5IKQvrbn0JPNFsq3uYwlfEbk1L4SwJvzjdNUrNT44jw29GaTYAXA 8WxJ0C6KVPzMCqCFmpcwiXW1kZ3SZnzw04ncvk6JPByxXJjshBUbH0XnxeLaoKI6qLO5 AYdW1VvgOw5FfoNPig/WlFUOEUnBqu8dWUmLPNBATQByImnR62YGSddKMW8OMVcM3BCp Y0vIArmX8nSVIDHrJlQecTTyB783mipMwnA0+Hhjhm+rEpJgnkAxDSvj5I/JG7vRwgJC ONgcCsmY7fuFtnXsVbXva3Ns0TW48cKWa7o3f428v2ZPpkpGhhUH+DWrzptNCeGpA/Lw B2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=PNpmZ/1bn7ZvtvS1FYTPLDxvUN515Mcm8HzueivD4+0=; b=eLkTMpz0dt9gCFqfC2c4xsBfcWeLZanj4kLkD/fVxjxqQumCeKiymlBMxFo2FMmC65 2OSILV1GUrKuPzzYlsrU3WZ+h/ks9r1BrI9fm7+y5FfzXFHiqsNfZeUV+wXDGqO152Ol fmC+ZMOFey5h+cKvIx8hLiBPvVwMGkoqy391xxbRWVRpL/QNuJgfyrQyYGl9OLZS4noi n794t4NaNBU9QeJxiSYv4+PyZH6Qmn8mtB1lOKcKcxgHHZ+2rZ4cNpUxkhHfgZP9Tlxp 2wYpmDpEtdDvnFhLYBFd8VHegGhME4J9rxTFWfoHF8b1bhjbcLNq5VfvlH9cLozQXxvy fqCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=BZ3bX30G; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si6711901otr.293.2020.01.13.05.20.46; Mon, 13 Jan 2020 05:21:00 -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=@st.com header.s=STMicroelectronics header.b=BZ3bX30G; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728766AbgAMNTm (ORCPT + 99 others); Mon, 13 Jan 2020 08:19:42 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:8262 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbgAMNTm (ORCPT ); Mon, 13 Jan 2020 08:19:42 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00DDIVCk021817; Mon, 13 Jan 2020 14:19:22 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=PNpmZ/1bn7ZvtvS1FYTPLDxvUN515Mcm8HzueivD4+0=; b=BZ3bX30GGJDNZ+GCxhSU4q7rNQBOnnslt+RwvEWXid6vy9gJsyP7nkdyzLJLkW6JE+OS XBv73V/9HRnUYHL0l9h0wDsDKNr1XUGIhbNDeb3eXseoGPCxsh+sZzOmt+IqKR5T7b8u RncjhkcbwGx+MM0D2b5z1JjGNMG5jKDvelShapkfeMQoG6v17D5i9UTxHCDeIy270wRg Ozvqga/4kDrdCnN49Nlj97Qj9H20ePJuW36/s2HGEo5PnMcWIm71+TGZJySI2BVAxy5N t+SKrT7b1uGLHjrQvr41heCV3OOmhpwFi/wuM83A91yWZIpJXw+htV5L5Nn+iKgl0mYZ HQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xf77arbpq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2020 14:19:22 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E376C10002A; Mon, 13 Jan 2020 14:19:21 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D36A42B8214; Mon, 13 Jan 2020 14:19:21 +0100 (CET) Received: from localhost (10.75.127.44) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 13 Jan 2020 14:19:21 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , , , , Subject: [PATCH] iio: adc: stm32-adc: don't print an error on probe deferral Date: Mon, 13 Jan 2020 14:18:59 +0100 Message-ID: <1578921539-6353-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-13_03:2020-01-13,2020-01-13 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.7.4