From patchwork Wed Jun 5 05:34:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 2664861 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 7D6B8DF264 for ; Wed, 5 Jun 2013 05:34:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BB8FE62BC for ; Tue, 4 Jun 2013 22:34:41 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A0694E5C8E for ; Tue, 4 Jun 2013 22:34:28 -0700 (PDT) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MNW0046ZNF1A180@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 05 Jun 2013 14:34:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 57.87.03969.1EDCEA15; Wed, 05 Jun 2013 14:34:25 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-7a-51aecde166ce Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 13.F3.28381.0EDCEA15; Wed, 05 Jun 2013 14:34:25 +0900 (KST) Received: from localhost.localdomain ([10.90.8.56]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MNW003E3NHAA0W1@mmp1.samsung.com>; Wed, 05 Jun 2013 14:34:24 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH] drm/exynos: remove ignoring return value warning in hdmi Date: Wed, 05 Jun 2013 14:34:38 +0900 Message-id: <1370410478-32221-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsWyRsSkRPfh2XWBBg3PuSx6z51ksrjy9T2b xaT7E1gszja9YbeYMfklmwOrx/ZvD1g97ncfZ/Lo27KKMYA5issmJTUnsyy1SN8ugStjQfMa 9oIZHBVrNp5namDsZu9i5OSQEDCRmHVtNwuELSZx4d56ti5GLg4hgaWMEpN29QIlOMCKzq5R g4gvYpTYuOIhWIOQQDOTxKzHRSA2m4COxP4lv1lBbBEBS4kHW38zg9jMAu4SzS+PgcWFBTwl Ptz9yAZiswioSjxq2swIYvMKuEns3nYE6iAFiQX33oIdISHwmk3izZrLjBANAhLfJh+COkhW YtMBZoh6SYmDK26wTGAUXMDIsIpRNLUguaA4Kb3IWK84Mbe4NC9dLzk/dxMjMBxP/3vWv4Px 7gHrQ4zJQOMmMkuJJucDwzmvJN7Q2MzIwtTE1NjI3NKMNGElcV61FutAIYH0xJLU7NTUgtSi +KLSnNTiQ4xMHJxSDYxBButmS7oufdavZ9t2sS3sq1nnObEjNXyfwz3u+J/5e4ZFt4Djhej2 /5fO6p522H9Gt0WfUfRBpH3f9T7XN5Z65Vf/vy77fj4jadu3Lyuc42y4P9fOkshcNYnv2t3E MzfcGXUW17rOfat9+ut1iX+Tmd5duLlM7oiJnrlR27Yz87XU5xp/NfitxFKckWioxVxUnAgA /QJDXF0CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsVy+t9jAd2HZ9cFGuzfzGzRe+4kk8WVr+/Z LCbdn8BicbbpDbvFjMkv2RxYPbZ/e8Dqcb/7OJNH35ZVjAHMUQ2MNhmpiSmpRQqpecn5KZl5 6bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAS5UUyhJzSoFCAYnFxUr6dpgmhIa4 6VrANEbo+oYEwfUYGaCBhDWMGQua17AXzOCoWLPxPFMDYzd7FyMHh4SAicTZNWpdjJxAppjE hXvr2boYuTiEBBYxSmxc8ZAFJCEk0MwkMetxEYjNJqAjsX/Jb1YQW0TAUuLB1t/MIDazgLtE 88tjYHFhAU+JD3c/soHYLAKqEo+aNjOC2LwCbhK7tx1hh1imILHg3lu2CYzcCxgZVjGKphYk FxQnpeca6hUn5haX5qXrJefnbmIEB/szqR2MKxssDjEKcDAq8fB+YFgXKMSaWFZcmXuIUYKD WUmENzQBKMSbklhZlVqUH19UmpNafIgxGWj7RGYp0eR8YCTmlcQbGpuYGVkamRtaGBmbkyas JM57oNU6UEggPbEkNTs1tSC1CGYLEwenVAOjGK+68XHbTZO6olmm5U/ef/z18gztAi+2z3Ed EoduS3Y/ajKTePdS45aL7/LLp8LZlxcG3z1/q9dTapHgRMHgGL/u1xYmoe8ce/bcD8pfaqHU UvM/2vai9u4+Y+EHKyytnJLiAwM8t5xIzH54rSz7wN7lkwzYTMOKODIfdO7aoMx2bQOLuZsS S3FGoqEWc1FxIgCWACb6ugIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org The definition of regulator_bulk_enable is fixed with __must_check and this causes following build warning. warning: ignoring return value of 'regulator_bulk_enable', declared with attribute warn_unused_result This patch fixes to check return value of the function. Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/exynos/exynos_hdmi.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 2f78532..f807b13 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1699,7 +1699,9 @@ static void hdmi_poweron(struct hdmi_context *hdata) mutex_unlock(&hdata->hdmi_mutex); - regulator_bulk_enable(res->regul_count, res->regul_bulk); + if (regulator_bulk_enable(res->regul_count, res->regul_bulk)) + DRM_ERROR("failed to enable regulator bulk\n"); + clk_enable(res->hdmiphy); clk_enable(res->hdmi); clk_enable(res->sclk_hdmi);