From patchwork Wed Feb 26 01:13:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324161 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 8CB512C00A0 for ; Wed, 26 Feb 2014 12:13:21 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750755AbaBZBNV (ORCPT ); Tue, 25 Feb 2014 20:13:21 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:39399 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728AbaBZBNU (ORCPT ); Tue, 25 Feb 2014 20:13:20 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K004ETWQ7Z0B0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:13:19 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 87.A1.09028.FAF3D035; Wed, 26 Feb 2014 10:13:19 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-4c-530d3fafa271 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F6.AB.29263.FAF3D035; Wed, 26 Feb 2014 10:13:19 +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 <0N1K00I5GWQ7JN40@mmp1.samsung.com>; Wed, 26 Feb 2014 10:13:19 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Philip Avinash' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 8/9] pwm: tiehrpwm: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:13:19 +0900 Message-id: <001b01cf328f$ef253960$cd6fac20$%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+vBVdBShKGb71bK5ER2QAAcudg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsVy+t8zI9319rzBBvcfClo8urOfyeLywkus FnfvrmK0+LlrHosDi8fOWXfZPfq2rGL0OH5jO5PH501yASxRXDYpqTmZZalF+nYJXBnPXkxk Kuhiq7i0bDZbA2MDaxcjJ4eEgInEvAcdbBC2mMSFe+uBbC4OIYFljBJ/zv1ggSl6cKODFSKx iFFiwZGfUFW/GSUedP1lBqliE1CT+PLlMDuILSKgL3Hp+iWwFcwCORJfHr0BWyEkYCtx784G RhCbU8BOYtGqFWAbhAWcJe4cbGMCsVkEVCUOnzoCNpMXqL7rxy5WCFtQ4sfkeywQM7Uk1u88 zgRhy0tsXvMWqJ4D6FJ1iUd/dSHCIhL7XrxjhDjHSOJu2zNGkJslBE6xS/w5uBNql4DEt8mH WCB6ZSU2HWCGeFhS4uCKGywTGCVmIdk8C8nmWUg2z0KybgEjyypG0dSC5ILipPQiI73ixNzi 0rx0veT83E2MkLjs28F484D1IcZkoPUTmaVEk/OBcZ1XEm9obGZkYWpiamxkbmlGmrCSOO+i h0lBQgLpiSWp2ampBalF8UWlOanFhxiZODilGhizQlLOPUzTvrzuJ9f6TfrtESFfDlw6WK15 dr6v1vnrJ+OUJDcVrnkoYBH5iaFB9MCKaZ4r2uz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LP-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-tiehrpwm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index aee4471..3a31c08 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -440,10 +440,8 @@ static int ehrpwm_pwm_probe(struct platform_device *pdev) u16 status; pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); - if (!pc) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pc) return -ENOMEM; - } clk = devm_clk_get(&pdev->dev, "fck"); if (IS_ERR(clk)) {