From patchwork Fri Feb 28 09:21:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 213559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EAE3C3F2D0 for ; Fri, 28 Feb 2020 09:21:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0079B24695 for ; Fri, 28 Feb 2020 09:21:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="ZFPCtbcr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbgB1JVg (ORCPT ); Fri, 28 Feb 2020 04:21:36 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39185 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgB1JVg (ORCPT ); Fri, 28 Feb 2020 04:21:36 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200228092135euoutp02bed36fa5d161e66df20ffd07e3f56146~3hoPosEDg0646306463euoutp02E for ; Fri, 28 Feb 2020 09:21:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200228092135euoutp02bed36fa5d161e66df20ffd07e3f56146~3hoPosEDg0646306463euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582881695; bh=60orSmm5KONwPF6rHsBABW9a8520HrdG+O9aycnqB5s=; h=From:To:Cc:Subject:Date:References:From; b=ZFPCtbcrjA6X9ArHtGauTUzEi70ZH3WbTdl/5e7zL7Mtk7fzmZ9uTu+J2t+h9RFmf voIslAzG8Wdm/GWi06P47Q4TYKcElpoLNFg1Y7mvxu/Z3vvW/0ZJYMk6rRErXH9kQj wGzQV+gfDnKjYI54qERhREQvODVEEV1d/17/a2KA= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200228092134eucas1p2b17bcab55009862992d565ed4536cc20~3hoPYTgAV0231702317eucas1p2q; Fri, 28 Feb 2020 09:21:34 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 23.1F.60679.E9BD85E5; Fri, 28 Feb 2020 09:21:34 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd~3hoPBUBxk0231802318eucas1p2c; Fri, 28 Feb 2020 09:21:34 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200228092134eusmtrp105fcc6beb887dff0efdb7cdddf8cb7a8~3hoPAoa641945619456eusmtrp1X; Fri, 28 Feb 2020 09:21:34 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-c4-5e58db9eceb6 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CB.FC.07950.E9BD85E5; Fri, 28 Feb 2020 09:21:34 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200228092134eusmtip26a4bb18a6d25dac07d3b49f95f195e58~3hoOlop1M1481114811eusmtip2D; Fri, 28 Feb 2020 09:21:33 +0000 (GMT) From: Marek Szyprowski To: linux-iio@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Krzysztof Kozlowski Subject: [PATCH] iio: adc: exynos: Silence warning about regulators during deferred probe Date: Fri, 28 Feb 2020 10:21:21 +0100 Message-Id: <20200228092121.15918-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRmVeSWpSXmKPExsWy7djPc7rzbkfEGSycqmXxoGkVk8Wu/2+Y Lc6f38BusWTyfFaLeUfesVjMOL+PyWLtkbvsFr93HWN34PD48DHOY9OqTjaPJW8OsXqcbz7C 6NG3ZRWjx+dNcgFsUVw2Kak5mWWpRfp2CVwZR1bNZiqYzl6x4/sMpgbGv6xdjJwcEgImEj/2 P2fsYuTiEBJYwSgx8+oNKOcLo8Sb6dtYIZzPjBInlrTAtaxofwxVtZxR4vvTP6xwLV/2P2QH qWITMJToetvFBmKLCDhITJ5zihmkiFngK6PEkgcbmEASwgLREqvnPAIrYhFQlfj49AaYzStg K/F8+2qodfISqzccAGuWELjPJnHw901GiISLxPHnl9kgbGGJV8e3sEPYMhKnJ/ewQDQ0M0o8 PLeWHcLpYZS43DQDqtta4s65X0DdHEA3aUqs36UPEXaU2Nr4hh0kLCHAJ3HjrSBImBnInLRt OjNEmFeio00IolpNYtbxdXBrD164xAxhe0hcfXKTBcQWEoiVeHrrJcsERrlZCLsWMDKuYhRP LS3OTU8tNspLLdcrTswtLs1L10vOz93ECEwRp/8d/7KDcdefpEOMAhyMSjy8C3aExwmxJpYV V+YeYpTgYFYS4d34NTRO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dsqC9hAgAA X-CMS-MailID: 20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd X-Msg-Generator: CA X-RootMTR: 20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200228092134eucas1p226ebb0e76f2a6c82b62489ae3a0379bd References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Don't confuse user with meaningless warning about the failure in getting regulators in case of deferred probe. Signed-off-by: Marek Szyprowski --- drivers/iio/adc/exynos_adc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 2df7d057b249..22131a677445 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -836,8 +836,10 @@ static int exynos_adc_probe(struct platform_device *pdev) info->vdd = devm_regulator_get(&pdev->dev, "vdd"); if (IS_ERR(info->vdd)) { - dev_err(&pdev->dev, "failed getting regulator, err = %ld\n", - PTR_ERR(info->vdd)); + if (PTR_ERR(info->vdd) != -EPROBE_DEFER) + dev_err(&pdev->dev, + "failed getting regulator, err = %ld\n", + PTR_ERR(info->vdd)); return PTR_ERR(info->vdd); }