From patchwork Wed Apr 23 09:40:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341741 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 D4E5614009A for ; Wed, 23 Apr 2014 19:40:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbaDWJkL (ORCPT ); Wed, 23 Apr 2014 05:40:11 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:44765 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbaDWJkJ (ORCPT ); Wed, 23 Apr 2014 05:40:09 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H00B4Z9IWUV20@mailout4.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:40:08 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id E5.F1.09952.87A87535; Wed, 23 Apr 2014 18:40:08 +0900 (KST) X-AuditID: cbfee690-b7fcd6d0000026e0-f6-53578a783e2d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 28.E8.27725.87A87535; Wed, 23 Apr 2014 18:40:08 +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 <0N4H00FKC9IWQJA0@mmp1.samsung.com>; Wed, 23 Apr 2014 18:40:08 +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 3/9] pwm: pxa: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:40:08 +0900 Message-id: <000d01cf5ed8$03c32020$0b496060$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAADzkg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zY92KrvBggxe9hhaXF15itbh7dxWj xc9d81gcmD12zrrL7tG3ZRWjx+dNcgHMUVw2Kak5mWWpRfp2CVwZ61afYC3oYKvouvubsYHx F0sXIyeHhICJxNwJG5ggbDGJC/fWs3UxcnEICSxjlPh9/SZc0cWNc9ghEosYJabPusgC4fxm lPi1bCk7SBWbgJrEly+HwWwRAX2JS9cvsYLYzAKOEueP9YPZQgK2Eo0rroJN5RSwkziw5hdY vbCAq8TyGzfZQGwWAVWJxTdOgtXwAtV/nHeRFcIWlPgx+R4LxEwtifU7jzNB2PISm9e8Ze5i 5AC6VF3i0V9diBOMJDbemgpVIiKx78U7RpCbJQR2sUvsfPeMEWKXgMS3yYdYIHplJTYdYIZ4 WFLi4IobLBMYJWYh2TwLyeZZSDbPQrJiASPLKkbR1ILkguKk9CITveLE3OLSvHS95PzcTYyQ GJywg/HeAetDjMlA6ycyS4km5wNjOK8k3tDYzMjC1MTU2Mjc0ow0YSVxXrVHSUFCAumJJanZ qakFqUXxRaU5qcWHGJk4OKUaGKMygvZMak2o2R9xdW7dttVff5l/WvZT11Tp8461ZmZHxUoL c/kveb5fpsgVNPmt+LOHry4z57O3Cu0UzJll/6xi8kOX2IkJWaLb/Pr8SrN7bkpmTrI31zSe xbwo59W/PW/eS7/S73KKbj9R8njpz5oF7tm7m9WE3rdfkGyuLWKZ5e6o5dtgo8RSnJFoqMVc VJwIAMLOJJPXAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsVy+t9jAd2KrvBgg5ZPuhaXF15itbh7dxWj xc9d81gcmD12zrrL7tG3ZRWjx+dNcgHMUQ2MNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaG uoaWFuZKCnmJuam2Si4+AbpumTlAm5QUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUY GaCBhHWMGetWn2At6GCr6Lr7m7GB8RdLFyMnh4SAicTFjXPYIWwxiQv31rN1MXJxCAksYpSY PusiC4Tzm1Hi17KlYFVsAmoSX74cBrNFBPQlLl2/xApiMws4Spw/1g9mCwnYSjSuuAq2gVPA TuLAml9g9cICrhLLb9xkA7FZBFQlFt84CVbDC1T/cd5FVghbUOLH5HssEDO1JNbvPM4EYctL bF7zlrmLkQPoUnWJR391IU4wkth4aypUiYjEvhfvGCcwCs1CMmkWkkmzkEyahaRlASPLKkbR 1ILkguKk9FxDveLE3OLSvHS95PzcTYzgCH8mtYNxZYPFIUYBDkYlHt6ClWHBQqyJZcWVuYcY JTiYlUR4N3SGBwvxpiRWVqUW5ccXleakFh9iTAZ6dCKzlGhyPjD55JXEGxqbmBlZGplZGJmY m5MmrCTOe6DVOlBIID2xJDU7NbUgtQhmCxMHp1QDo7/Ytujj5+IXp/7hlHa9UaRnk/nz1KKb r4vWyC/8bR88t/Qv66EVeztKlKTYpth85D6jelj2QRObvU1ulGledKLxVRudW5VGFqHfLpzL b/dqd+vn6n5tWCUuXFO5sazmpH1TRV5k1OPf6Rfdo9zDDcIvnToyeePTkBW/3Az5nJZxnTRs nemgxFKckWioxVxUnAgA6NE0cjQDAAA= 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-pxa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index cd356d8..0b312ec 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -179,10 +179,8 @@ static int pwm_probe(struct platform_device *pdev) return -EINVAL; pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); - if (pwm == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (pwm == NULL) return -ENOMEM; - } pwm->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(pwm->clk))