From patchwork Wed Apr 23 09:39: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: 341740 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 2B2B614009A for ; Wed, 23 Apr 2014 19:39:54 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752911AbaDWJjx (ORCPT ); Wed, 23 Apr 2014 05:39:53 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:8802 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbaDWJjv (ORCPT ); Wed, 23 Apr 2014 05:39:51 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H00HW49IEFC90@mailout1.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:39:50 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id A5.9D.11496.66A87535; Wed, 23 Apr 2014 18:39:50 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-1e-53578a66f0d0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 60.E8.27725.56A87535; Wed, 23 Apr 2014 18:39:50 +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 <0N4H00DFU9IDN980@mmp2.samsung.com>; Wed, 23 Apr 2014 18:39:49 +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 2/9] pwm: i.MX: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:39:49 +0900 Message-id: <000c01cf5ed7$f89c34c0$e9d49e40$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAC87g Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zA920rvBgg+Pb2SwuL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYo7hsUlJzMstSi/TtErgyDpzpZiyYzlaxbdpM1gbG DtYuRk4OCQETicb+TiYIW0ziwr31bF2MXBxCAssYJU5+XsAOU/Rs4WF2iMR0RokvC86xQDi/ GSXaJ28Ca2cTUJP48uUwWIeIgL7EpeuXwFYwCzhKnD/WD2YLCdhKNK64ygJicwrYSRxY8wus XljATeLN/fuMIDaLgKrE7jfvwWbyAtW/v/uRHcIWlPgx+R4LxEwtifU7jzNB2PISm9e8Ze5i 5AC6VF3i0V9diBOMJPZ/a2aHKBGR2PfiHSPIzRIC+9glln2DmMkiICDxbfIhFoheWYlNB5gh HpaUOLjiBssERolZSDbPQrJ5FpLNs5CsWMDIsopRNLUguaA4Kb3IVK84Mbe4NC9dLzk/dxMj JAYn7mC8f8D6EGMy0PqJzFKiyfnAGM4riTc0NjOyMDUxNTYytzQjTVhJnDf9UVKQkEB6Yklq dmpqQWpRfFFpTmrxIUYmDk6pBsbVTKaHrCTn2vCln4973x7Y+0DifW941KkL65brtU251MNy sX3Phg0v7m3+dtNq/mvXtfUMLwXsbq/cZxXkn24aVtQtmlOe8jO/smb954eHw9ZGRC7d13l4 IrPZ5oUOyi6PV735Mq3pltd9h8jnHFvEdnLdO9utqrbwRmSjxspqAemXe9T8XOcosRRnJBpq MRcVJwIAuqgrZdcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsVy+t9jQd20rvBggze3mSwuL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCesYMw6c6WYsmM5WsW3aTNYGxg7WLkZODgkBE4lnCw+zQ9hiEhfurWfrYuTiEBKYzijx ZcE5FgjnN6NE++RNTCBVbAJqEl++QHSICOhLXLp+CWwSs4CjxPlj/WC2kICtROOKqywgNqeA ncSBNb/A6oUF3CTe3L/PCGKzCKhK7H7zHmwmL1D9+7sf2SFsQYkfk++xQMzUkli/8zgThC0v sXnNW+YuRg6gS9UlHv3VhTjBSGL/t2Z2iBIRiX0v3jFOYBSahWTSLCSTZiGZNAtJywJGllWM oqkFyQXFSem5hnrFibnFpXnpesn5uZsYwRH+TGoH48oGi0OMAhyMSjy8BSvDgoVYE8uKK3MP MUpwMCuJ8OZ1hAcL8aYkVlalFuXHF5XmpBYfYkwGenQis5Rocj4w+eSVxBsam5gZWRqZWRiZ mJuTJqwkznug1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA2Mav+yThZ3im+98T+bOzJUpn6S8aNoK ziI3q/hTqQX5r/sO2//lE/2cN+9w4a9JU5abrP69y/2VgmRwQO1n3u39WUlmXfuv/eyf9mPb 3YLgxH6bXadft87U6jlUFJjvUfxvh9R2o/Tp7OdO153ZcUDQzjLDaZ3s30beyTGsH2b+M3W+ tSems0KJpTgj0VCLuag4EQD+TFysNAMAAA== DLP-Filter: 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)) {