Message ID | 20200227070637.4115-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=luaX=4P=vger.kernel.org=linux-samsung-soc-owner@kernel.org> 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, 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 05DF3C4BA24 for <linux-samsung-soc@archiver.kernel.org>; Thu, 27 Feb 2020 07:06:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C376F24688 for <linux-samsung-soc@archiver.kernel.org>; Thu, 27 Feb 2020 07:06:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="dATCsxDu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726999AbgB0HGw (ORCPT <rfc822;linux-samsung-soc@archiver.kernel.org>); Thu, 27 Feb 2020 02:06:52 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:42450 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbgB0HGw (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Thu, 27 Feb 2020 02:06:52 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200227070650euoutp020cc1639c2205e12350c422672d5e8905~3MJT5LD3k2317723177euoutp022 for <linux-samsung-soc@vger.kernel.org>; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200227070650euoutp020cc1639c2205e12350c422672d5e8905~3MJT5LD3k2317723177euoutp022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1582787210; bh=TJmaPby/SK5iUef1kmGVJ3ZKmyzeMQArHD4PSzu1Wco=; h=From:To:Cc:Subject:Date:References:From; b=dATCsxDupzKKQEypPsfP2ANnEIFiK7b4Iqz+Kfj7ysNU/kjW0yU5gVchATLTia52c W6rHqN+3p3gwbxax22UwCVp2fNbDM0BYVKbXBWR4kYQJlkFj/6rD53el0py/p6GDWX xCnLwVt3jpgXJc6+cp7EE1Yf89DCOFwH6qyRLcck= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200227070650eucas1p261b305dfc605373b2a8c228f5523edb2~3MJTnh-Th2017720177eucas1p2e; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id EB.F1.60698.A8A675E5; Thu, 27 Feb 2020 07:06:50 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b~3MJTCLjEs0193901939eucas1p1D; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200227070649eusmtrp230042b11ad8e8b56b6eb90399c4b9ad6~3MJTBkbO71480014800eusmtrp2P; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-15-5e576a8a4fd4 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9F.97.07950.98A675E5; Thu, 27 Feb 2020 07:06:49 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200227070649eusmtip218aa6e750e4e1b6e0e4767a4d0a74eec~3MJSlYiN02145521455eusmtip2u; Thu, 27 Feb 2020 07:06:48 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Inki Dae <inki.dae@samsung.com>, Andrzej Hajda <a.hajda@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org> Subject: [PATCH v2] drm/exynos: dsi: propagate error value and silence meaningless warning Date: Thu, 27 Feb 2020 08:06:37 +0100 Message-Id: <20200227070637.4115-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRjm27nsuJwdj5IvWmrrauEtDQ5kURCxosA/GUVetjx43Rybd6iG hdkWMhV0SpmUkSy2qYldtGFqDTGm5TCzxJa/tLyUGhhlbTua/54rz/vBR2HMAh5MZSnzObVS lishRXjn6xVHpC77XErMxB2CHbc4CLbNaCVY5/I8yVZPGnB2aKhVyBqHbALW3D/hRjXT5FFK 2m66SUon9XaBtLLDhKSL7aGJ+AVRQjqXm1XIqaOPpIkyV3p8VbVUsdnZRGrRHKlDPhTQ8VC5 Wo7pkIhi6BYEhtVZgidLCEbrX62RRQSmgTrBemX48dJa5SECs1O/UXlQ+5XwpEg6FnSzOu9I IH0CyvrqvSGM1gpAXz7uNQLoi2CdKxN6ME7vgi8jfEFMJ4Dp9gzBz4XBo9Ye7xzQIyS0VDTi vHEcPs+Mrj0jAGbsHUIeb4W/z+4K+MI1BC6HWciTWwhG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f+r/XOnW/3VR g7vh7blHNa4l/BH8I9R4+Y90I7/LmZVhVlPq78lIVzrv3C+ormKsaK0q90ukq7hJb0H415ay 3bcSzSdJK9/gWnLBsmjWz/6m6inth3tDavvbyuKrWybfkFRiKc5INNRiLipOBADJjRFJWAIA AA== X-CMS-MailID: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b References: <CGME20200227070649eucas1p15dcf4847b369fc20bd2a96f697b1173b@eucas1p1.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org |
Series |
[v2] drm/exynos: dsi: propagate error value and silence meaningless warning
|
expand
|
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 33628d85edad..3f6fcd453d33 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1773,8 +1773,9 @@ static int exynos_dsi_probe(struct platform_device *pdev) ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(dsi->supplies), dsi->supplies); if (ret) { - dev_info(dev, "failed to get regulators: %d\n", ret); - return -EPROBE_DEFER; + if (ret != -EPROBE_DEFER) + dev_info(dev, "failed to get regulators: %d\n", ret); + return ret; } dsi->clks = devm_kcalloc(dev,
Properly propagate error value from devm_regulator_bulk_get() and don't confuse user with meaningless warning about failure in getting regulators in case of deferred probe. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- v2: rephrased commit message --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)