From patchwork Wed Feb 26 01:06:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C98192C00A0 for ; Wed, 26 Feb 2014 12:06:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbaBZBGk (ORCPT ); Tue, 25 Feb 2014 20:06:40 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:30108 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336AbaBZBGh (ORCPT ); Tue, 25 Feb 2014 20:06:37 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K00CPJWEZA9C0@mailout4.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:06:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 05.B2.14803.B1E3D035; Wed, 26 Feb 2014 10:06:35 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-13-530d3e1b77c2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6D.0A.29263.B1E3D035; Wed, 26 Feb 2014 10:06:35 +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 <0N1K00GG4WEZD590@mmp1.samsung.com>; Wed, 26 Feb 2014 10:06:35 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Eric Miao' , 'Mike Dunn' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 3/9] pwm: pxa: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:06:35 +0900 Message-id: <000b01cf328e$fea03210$fbe09630$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-language: ko Thread-index: Ac8yjgDAAe+vBVdBShKGb71bK5ER2QAALmLg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEIsWRmVeSWpSXmKPExsVy+t8zQ11pO95gg+ZHhhY72o6zWVxeeInV 4u7dVYwWa1/9ZLP4uWseiwOrx85Zd9k9llx/z+rRt2UVo8fnTXIBLFFcNimpOZllqUX6dglc GatetzIVdLBV3L+xlqWB8RdLFyMnh4SAicSujXdZIWwxiQv31rOB2EICyxgl9p0pg6nZfmA5 UJwLKL6IUeLP/QdMEM5vRon+CY/AutkE1CS+fDnMDmKLCOhLXLp+iRWkiFmgh1Hiy4nXjBBj bSXu3dkAZnMK2EksWrUC7AxhIPvjirfMIDaLgKrEt0eLwM7gBap/sfgNE4QtKPFj8j2wemYB LYn1O48zQdjyEpvXgPRyAJ2qLvHory5EWERi34t3jCBhEQEjidUPvEHOkRC4xC7Ren4pI8Qq AYlvkw+xQLTKSmw6wAzxsKTEwRU3WCYwSsxCsngWksWzkCyehWTbAkaWVYyiqQXJBcVJ6UWm esWJucWleel6yfm5mxgh8TlxB+P9A9aHGJOB1k9klhJNzgfGd15JvKGxmZGFqYmpsZG5pRlp wkrivOmPkoKEBNITS1KzU1MLUovii0pzUosPMTJxcEo1MMo/NNS7KOsfFWFnNrfPnWP1nZtb GCfdU1r3dOqMVTJTFfbkHr/0fmbu4vmuCVZOtZG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Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/pwm/pwm-pxa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index 8d99573..f1e8692 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -179,10 +179,8 @@ static int pwm_probe(struct platform_device *pdev) return -EINVAL; pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); - if (pwm == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (pwm == NULL) return -ENOMEM; - } pwm->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(pwm->clk))