From patchwork Wed Apr 23 09:39:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341739 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 DE3401400EC for ; Wed, 23 Apr 2014 19:39:43 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750890AbaDWJjm (ORCPT ); Wed, 23 Apr 2014 05:39:42 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:44643 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932122AbaDWJjg (ORCPT ); Wed, 23 Apr 2014 05:39:36 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H00B7O9HRNN20@mailout4.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:39:27 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id F7.62.14563.F4A87535; Wed, 23 Apr 2014 18:39:27 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-d7-53578a4fefd6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E8.E9.25708.F4A87535; Wed, 23 Apr 2014 18:39:27 +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 <0N4H00JTH9HQI920@mmp1.samsung.com>; Wed, 23 Apr 2014 18:39:27 +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 1/9] pwm: ab8500: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:39:26 +0900 Message-id: <000b01cf5ed7$eaf5f180$c0e1d480$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAB9qg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t8zI13/rvBgg2vbeCwuL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYo7hsUlJzMstSi/TtErgy7l+wLLjKVjH3xA+mBsa9 rF2MnBwSAiYSM39dZoSwxSQu3FvP1sXIxSEksIxR4sj/6UwwRd9f7GCCSCxilPj/+jw7hPOb UeLjwjNgVWwCahJfvhxmB7FFBPQlLl2/BLaCWcBR4vyxfjBbSMBWonHFVRYQm1PATuLAml9g 9cICHhKn1uwGi7MIqEq0P/wLFOfg4AWqv/i8GCTMKyAo8WPyPRaIkVoS63ceZ4Kw5SU2r3nL DFIuIaAu8eivLsQFRhKnWx6yQ5SISOx78Y4R5GQJgX3sEsdO72SGWCUg8W3yIRaIXlmJTQeY If6VlDi44gbLBEaJWUg2z0KyeRaSzbOQrFjAyLKKUTS1ILmgOCm9yEivODG3uDQvXS85P3cT IyT++nYw3jxgfYgxGWj9RGYp0eR8YPzmlcQbGpsZWZiamBobmVuakSasJM676GFSkJBAemJJ anZqakFqUXxRaU5q8SFGJg5OqQbGeJvPV0K6RYU5rmtKFU0yXM97bPdOk7T5zNtydm+6+HpB 7F6pm3c3Hm25/PHUjMRTh7/t+8u4v9bDeL3I679Z8mv3piyP3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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-ab8500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c index 1d07a6f..9d53e8e 100644 --- a/drivers/pwm/pwm-ab8500.c +++ b/drivers/pwm/pwm-ab8500.c @@ -101,10 +101,8 @@ static int ab8500_pwm_probe(struct platform_device *pdev) * device which is required for ab8500 read and write */ ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL); - if (ab8500 == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (ab8500 == NULL) return -ENOMEM; - } ab8500->chip.dev = &pdev->dev; ab8500->chip.ops = &ab8500_pwm_ops;