From patchwork Wed Feb 26 01:02:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324154 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 126242C009A for ; Wed, 26 Feb 2014 12:02:27 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbaBZBC0 (ORCPT ); Tue, 25 Feb 2014 20:02:26 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:36659 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbaBZBCZ (ORCPT ); Tue, 25 Feb 2014 20:02:25 -0500 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 <0N1K00452W80Z0A0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:02:24 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 14.93.10364.02D3D035; Wed, 26 Feb 2014 10:02:24 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-fe-530d3d203286 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4D.45.28157.02D3D035; Wed, 26 Feb 2014 10:02:24 +0900 (KST) Received: from DOJG1HAN03 ([12.36.166.146]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1K004OKW80FD40@mmp2.samsung.com>; Wed, 26 Feb 2014 10:02:24 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Arun Murthy' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 1/9] pwm: ab8500: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:02:23 +0900 Message-id: <000901cf328e$68b79400$3a26bc00$%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+vBVdBShKGb71bK5ER2QAABEYg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zfV0FW95gg2Pf+C1ePtzIbHF54SVW i7t3VzFa/Nw1j8WBxWPnrLvsHn1bVjF6fF+6ht3j8ya5AJYoLpuU1JzMstQifbsEroz7FywL rrJVzD3xg6mBcS9rFyMnh4SAicST8xNYIGwxiQv31rOB2EICyxglPh+Jh6lZeWwmYxcjF1B8 OqPE/TfTWSCc34wShy+9YAapYhNQk/jy5TA7iC0ioC9x6folsA3MAvkSr3qXQE21lbh3ZwMj iM0pYCexaNUKsM3CAo4SH86dZupi5OBgEVCV6DtQD2LyApU3zPYBqeAVEJT4MfkeC8RELYn1 O48zQdjyEpvXvGUGKZcQUJd49FcXIiwise/FO0aIY4wk+mZeZgO5WELgErvEqskLwK5hERCQ +Db5EAtEr6zEpgPMEO9KShxccYNlAqPELCSbZyHZPAvJ5llI1i1gZFnFKJpakFxQnJReZKJX nJhbXJqXrpecn7uJERKPE3Yw3jtgfYgxGWj9RGYp0eR8YDznlcQbGpsZWZiamBobmVuakSas JM6r9igpSEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVANj8yu+lIbfO5dou7xbsE7nSGn6L32u 68/ZMoM4jZw+3C2J+8ZQZJIdp22xanNAzbJuK1adj3nl1ndr8zRun+LWm6y0UOXbpNaVE7ck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S 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-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;