From patchwork Wed Apr 23 09:41:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341744 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 CC0AD14009A for ; Wed, 23 Apr 2014 19:41:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751836AbaDWJlN (ORCPT ); Wed, 23 Apr 2014 05:41:13 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:34084 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750860AbaDWJlL (ORCPT ); Wed, 23 Apr 2014 05:41:11 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H00JWK9KMN3D0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:41:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id E2.AA.18501.6BA87535; Wed, 23 Apr 2014 18:41:10 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-61-53578ab67e80 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2A.3A.25708.6BA87535; Wed, 23 Apr 2014 18:41:10 +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 <0N4H00EES9KMXA50@mmp2.samsung.com>; Wed, 23 Apr 2014 18:41:10 +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 6/9] pwm: tegra: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:41:10 +0900 Message-id: <001001cf5ed8$2879c6d0$796d5470$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAGCzQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zY91tXeHBBgsuSVhcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBltG+dzFRwg7Xizu9HzA2M l1i6GDk5JARMJD5/WMkEYYtJXLi3nq2LkYtDSGAZo8STa9eZYYrmT1rBApGYziixeOp5KOc3 o8SXe0vARrEJqEl8+XKYHcQWEdCXuHT9EiuIzSzgKHH+WD+YLSRgK9G44ipYPaeAncSBNb/A 6oUF3CVaZk4Bs1kEVCU29bczgti8QPX9H3exQdiCEj8m32OBmKklsX7ncSYIW15i85q3QJdy AF2qLvHory7ECUYSr1/eYoMoEZHY9+IdI8jNEgL72CWm31jICLFLQOLb5EMsEL2yEpsOQD0s KXFwxQ2WCYwSs5BsnoVk8ywkm2chWbGAkWUVo2hqQXJBcVJ6kaFecWJucWleul5yfu4mRkgM 9u5gvH3A+hBjMtD6icxSosn5wBjOK4k3NDYzsjA1MTU2Mrc0I01YSZw36WFSkJBAemJJanZq akFqUXxRaU5q8SFGJg5OqQZGVpElrA/1WJrsg5iLzp7i+3LA9CYPV9H/C28Ek8JXnDn96KlN 8O2I3pPPCoK1RFozMqwfVU2uWqq562ADf6LsIr1ev3ndap3S01keim8MOfP/o9/9YxIyKQ9c n/+VDJ18YpbwX51HD2eymT69qOS4KD9EZM6j7+0XL3d8WTJ/945gjfVtJ6uylFiKMxINtZiL ihMBbduZatcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsVy+t9jQd1tXeHBBudaRC0uL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCesYM9q3TmYquMFacef3I+YGxkssXYycHBICJhLzJ62AssUkLtxbz9bFyMUhJDCdUWLx 1PMsEM5vRokv95aAVbEJqEl8+XKYHcQWEdCXuHT9EiuIzSzgKHH+WD+YLSRgK9G44ipYPaeA ncSBNb/A6oUF3CVaZk4Bs1kEVCU29bczgti8QPX9H3exQdiCEj8m32OBmKklsX7ncSYIW15i 85q3zF2MHECXqks8+qsLcYKRxOuXt9ggSkQk9r14xziBUWgWkkmzkEyahWTSLCQtCxhZVjGK phYkFxQnpeca6RUn5haX5qXrJefnbmIER/gz6R2MqxosDjEKcDAq8fBKLA8LFmJNLCuuzD3E KMHBrCTCu6EzPFiINyWxsiq1KD++qDQntfgQYzLQoxOZpUST84HJJ68k3tDYxMzI0sjMwsjE 3Jw0YSVx3oOt1oFCAumJJanZqakFqUUwW5g4OKUaGHkva9yQO3FEh8Ha5Hvc/8fujAdM5otN dDM7F7f8o6vgXmX1W1Y6Pa2zmux+XhJ1SE02eC9ko2R+aMuL763n1/P46dxQ4Vsduzj9cOv+ iZceLpKoW6QsVLmlr192za/a2abCG85vP78l4/BV96M75saIfl4/T+TQu6Oznt/Seq7WW/o8 g9Hrr78SS3FGoqEWc1FxIgCq7xOnNAMAAA== 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-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;