From patchwork Wed Feb 26 01:04:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324155 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 705EC2C0086 for ; Wed, 26 Feb 2014 12:04:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750888AbaBZBEl (ORCPT ); Tue, 25 Feb 2014 20:04:41 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:37254 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbaBZBEk (ORCPT ); Tue, 25 Feb 2014 20:04:40 -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 <0N1K004F0WBRZ0A0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:04:39 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id C6.D4.10364.7AD3D035; Wed, 26 Feb 2014 10:04:39 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-fd-530d3da78a39 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3F.A5.28157.7AD3D035; Wed, 26 Feb 2014 10:04:39 +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 <0N1K0059SWBR5W30@mmp2.samsung.com>; Wed, 26 Feb 2014 10:04:39 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Sascha Hauer' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 2/9] pwm: i.MX: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:04:39 +0900 Message-id: <000a01cf328e$b95f0230$2c1d0690$%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+vBVdBShKGb71bK5ER2QAAGmeg X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zA93ltrzBBm3rlC0uL7zEanH37ipG i7/bN7FY/Nw1j8WBxWPnrLvsHv1/DTz6tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoEr48CZbsaC 6WwV26bNZG1g7GDtYuTkkBAwkdiy+xgbhC0mceHeeiCbi0NIYBmjxMRTO9lgipad/8oIkZjO KPFgcRM7hPObUWLb3EfMIFVsAmoSX74cZgexRQT0JS5dvwS2glkgR6Lv7Q0WEFtIwFbi3p0N jCA2p4CdxKJVK8DiwgL2Eod2tYPVswioSkx5+w5sDi9Q/c1/L9kgbEGJH5PvsUDM1JJYv/M4 E4QtL7F5zVugGziALlWXePRXFyIsIrHvxTtGiHOMJP4tfcoCcrOEwCl2ifd/vrJA7BKQ+Db5 EAtEr6zEpgPMEA9LShxccYNlAqPELCSbZyHZPAvJ5llI1i1gZFnFKJpakFxQnJReZKJXnJhb XJqXrpecn7uJERKVE3Yw3jtgfYgxGWj9RGYp0eR8YFTnlcQbGpsZWZiamBobmVuakSasJM6r 9igpSEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVAMj55ujElOzv7c8m/Uo5rdEUuRnV1mpfx/y l4WofvZW5/K0n7yeu2Op6hsfIf2WWZc+zbKr2sbc/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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-imx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index cc47733..d797c7b 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -241,10 +241,8 @@ static int imx_pwm_probe(struct platform_device *pdev) return -ENODEV; imx = devm_kzalloc(&pdev->dev, sizeof(*imx), GFP_KERNEL); - if (imx == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (imx == NULL) return -ENOMEM; - } imx->clk_per = devm_clk_get(&pdev->dev, "per"); if (IS_ERR(imx->clk_per)) {