From patchwork Wed Apr 23 09:40:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341743 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 1E2D614009A for ; Wed, 23 Apr 2014 19:40:59 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753426AbaDWJk6 (ORCPT ); Wed, 23 Apr 2014 05:40:58 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:8964 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750860AbaDWJkz (ORCPT ); Wed, 23 Apr 2014 05:40:55 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H00HZ69K6FC90@mailout1.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:40:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id D9.7A.18501.2AA87535; Wed, 23 Apr 2014 18:40:50 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-a1-53578aa2092c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 42.09.27725.2AA87535; Wed, 23 Apr 2014 18:40:50 +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 <0N4H00FO79K2QJA0@mmp1.samsung.com>; Wed, 23 Apr 2014 18:40:50 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' References: <000a01cf5ed7$bd178ad0$3746a070$%han@samsung.com> In-reply-to: <000a01cf5ed7$bd178ad0$3746a070$%han@samsung.com> Subject: [PATCH RESEND 5/9] pwm: spear: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:40:49 +0900 Message-id: <000f01cf5ed8$1c74d780$555e8680$%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 Thread-index: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAFSkA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zI91FXeHBBjcn8ltcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlrFh9hbFgOVvF09+3mBoY Z7N2MXJySAiYSPy+/I4dwhaTuHBvPVsXIxeHkMAyRom/XQfYYIruX5vCDJFYxCjx6fseVgjn N1DVyb1go9gE1CS+fDkMNkpEQF/i0vVLYHFmAUeJ88f6wWwhAVuJxhVXWUBsTgE7iQNrfgHV c3AIC7hLLLokBhJmEVCVWNy3mQnE5gUqP3x3HTuELSjxY/I9FoiRWhLrdx5ngrDlJTavecsM MkZCQF3i0V9diAuMJK7u3s8IUSIise/FO0aQkyUEDrFLPJv1kw1il4DEt8mHWCB6ZSU2HWCG +FdS4uCKGywTGCVmIdk8C8nmWUg2z0KyYgEjyypG0dSC5ILipPQiQ73ixNzi0rx0veT83E2M kAjs3cF4+4D1IcZkoPUTmaVEk/OBEZxXEm9obGZkYWpiamxkbmlGmrCSOG/Sw6QgIYH0xJLU 7NTUgtSi+KLSnNTiQ4xMHJxSDYy7pZ6EfgkXqNqycllW3L1/k+f4P1Y4d/b6y0tqFj75gsxL ucsfiUz+fejO0ZO1n9aV/rm01Nrmx80zT/8K524RXv5m0++JH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: 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-spear.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index cb2d4f0..2daf3a1 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/pwm-spear.c @@ -179,10 +179,8 @@ static int spear_pwm_probe(struct platform_device *pdev) u32 val; pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); - if (!pc) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pc) return -ENOMEM; - } r = platform_get_resource(pdev, IORESOURCE_MEM, 0); pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);