From patchwork Thu Apr 17 10:08:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4007501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B1A6BFF02 for ; Thu, 17 Apr 2014 10:08:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADF7620353 for ; Thu, 17 Apr 2014 10:08:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A73DF2034E for ; Thu, 17 Apr 2014 10:08:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF92B6E4FC; Thu, 17 Apr 2014 03:08:17 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 210B26E4FC for ; Thu, 17 Apr 2014 03:08:16 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4600GFT6TR3A30@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 17 Apr 2014 19:08:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 33.19.10364.F08AF435; Thu, 17 Apr 2014 19:08:15 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-cb-534fa80f5021 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F1.27.29263.F08AF435; Thu, 17 Apr 2014 19:08:15 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4600LPE6TQ9940@mmp1.samsung.com>; Thu, 17 Apr 2014 19:08:14 +0900 (KST) From: Jingoo Han To: 'David Airlie' , dri-devel@lists.freedesktop.org References: <003c01cf5a24$ae1ecb90$0a5c62b0$%han@samsung.com> In-reply-to: <003c01cf5a24$ae1ecb90$0a5c62b0$%han@samsung.com> Subject: [PATCH 4/6] drm/exynos: dp: remove unnecessary OOM messages Date: Thu, 17 Apr 2014 19:08:14 +0900 Message-id: <004101cf5a24$f25bf8f0$d713ead0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9aJK3M+aa/fkaIQ9m2BBCdDlwGWwAADf0g Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFIsWRmVeSWpSXmKPExsVy+t8zfV3+Ff7BBhf+iFn0njvJZHHl63s2 i0n3J7BYXF54idXixb2LLBZnm96wW8yY/JLNgd1j+7cHrB73u48zefRtWcUYwBzFZZOSmpNZ llqkb5fAldG6Yid7wSKuiqNtV5gbGE9zdDFyckgImEhM/NXLCGGLSVy4t56ti5GLQ0hgGaPE 7Tfn2GGKji5+xQSRWMQo8aB3PQuE85tRonnlWiaQKjYBNYkvXw6DdYgIuEk8an0MVsQscIlR YurZX8wgCSEBW4lPqxpYQWxOATuJ+feXsIDYwgIuEss+d4DdwSKgKrH39wWwQbxA9ctWfIay BSV+TL4HVs8soCWxfudxJghbXmLzmrdA8zmATlWXePRXF+IGI4mLu3cwQpSISOx78Y4R5B4J gXvsEjv//2aG2CUg8W3yIRaIXlmJTQeYIT6WlDi44gbLBEaJWUg2z0KyeRaSzbOQrFjA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J/1rdlSs3baSWay+6sCZGw7PbWwlpb7vam11DX//IXw/y/InBewmv57LLJxbW14etSax aptfgNzbIqYd9lrzJncV/3vQuupVDN+bhTaTUt7uq9k/b/dKKa3nd342Zd5ZwPGQ6c7cYMcd Eg+zNY6lTroVsGrDopptGhbv7Pacen6H8coug9ggJZbijERDLeai4kQAgxOvzUoDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: 'Kyungmin Park' , 'Seung-Woo Kim' X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/gpu/drm/exynos/exynos_dp_core.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index a97840c..5e2262f 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -1113,10 +1113,8 @@ static struct video_info *exynos_dp_dt_parse_pdata(struct device *dev) dp_video_config = devm_kzalloc(dev, sizeof(*dp_video_config), GFP_KERNEL); - if (!dp_video_config) { - dev_err(dev, "memory allocation for video config failed\n"); + if (!dp_video_config) return ERR_PTR(-ENOMEM); - } dp_video_config->h_sync_polarity = of_property_read_bool(dp_node, "hsync-active-high"); @@ -1231,10 +1229,8 @@ static int exynos_dp_bind(struct device *dev, struct device *master, void *data) dp = devm_kzalloc(&pdev->dev, sizeof(struct exynos_dp_device), GFP_KERNEL); - if (!dp) { - dev_err(&pdev->dev, "no memory for device data\n"); + if (!dp) return -ENOMEM; - } dp->dev = &pdev->dev; dp->dpms_mode = DRM_MODE_DPMS_OFF;