From patchwork Wed Feb 26 01:10:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324159 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 061282C00A0 for ; Wed, 26 Feb 2014 12:11:04 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751338AbaBZBK6 (ORCPT ); Tue, 25 Feb 2014 20:10:58 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:38757 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751705AbaBZBK4 (ORCPT ); Tue, 25 Feb 2014 20:10:56 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K00107WM53EC0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:10:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 24.9F.10092.D1F3D035; Wed, 26 Feb 2014 10:10:53 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-05-530d3f1df4eb Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4A.EA.29263.D1F3D035; Wed, 26 Feb 2014 10:10:53 +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 <0N1K00HHEWM51R60@mmp1.samsung.com>; Wed, 26 Feb 2014 10:10:53 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Stephen Warren' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 6/9] pwm: tegra: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:10:53 +0900 Message-id: <001901cf328f$981dddc0$c8599940$%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+vBVdBShKGb71bK5ER2QAAXopg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zI11Ze95gg19HBCwuL7zEanH37ipG i1cH21gsfu6ax+LA4rFz1l12j74tqxg9Pm+S89g4NzSAJYrLJiU1J7MstUjfLoEro33rZKaC G6wVd34/Ym5gvMTSxcjJISFgIjH1zRY2CFtM4sK99UA2F4eQwDJGiZePellhii5Nb2GESCxi lNj5tYEJwvnNKLF841WwKjYBNYkvXw6zg9giAvoSl65fAoszC+RKnJ5zlRHEFhKwlbh3ZwOY zSlgJ7Fo1QqwM4QFHCRuX/sL1ssioCoxt2M7WC8vUP2WXR3sELagxI/J91ggZmpJrN95nAnC lpfYvOYtcxcjB9Cl6hKP/upChEUk9r14xwhxjpHEv9cv2UFulhA4xS6xZNohFohdAhLfJoPY IL2yEpsOMEM8LClxcMUNlgmMErOQbJ6FZPMsJJtnIVm3gJFlFaNoakFyQXFSepGxXnFibnFp Xrpecn7uJkZIVPbvYLx7wPoQYzLQ+onMUqLJ+cCoziuJNzQ2M7IwNTE1NjK3NCNNWEmc9/7D pCAhgfTEktTs1NSC1KL4otKc1OJDjEwcnFINjF2/XiY+yL5xs8ND65Xb7CrtlHknajS0VFUD pjEzlGyQTDhuP33ayzMmLrFv17gvMlLYFBf76H5YzG1/3cdXTuZ+OaTesdN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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-tegra.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c index 74298c5..61d86b9 100644 --- a/drivers/pwm/pwm-tegra.c +++ b/drivers/pwm/pwm-tegra.c @@ -173,10 +173,8 @@ static int tegra_pwm_probe(struct platform_device *pdev) int ret; pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); - if (!pwm) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pwm) return -ENOMEM; - } pwm->dev = &pdev->dev;