From patchwork Wed Apr 23 09:41:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341745 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 CCE8C1400EC for ; Wed, 23 Apr 2014 19:41:37 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbaDWJle (ORCPT ); Wed, 23 Apr 2014 05:41:34 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:45035 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755588AbaDWJl3 (ORCPT ); Wed, 23 Apr 2014 05:41:29 -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 <0N4H00BFT9L5JR20@mailout4.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:41:29 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 6E.72.09952.8CA87535; Wed, 23 Apr 2014 18:41:28 +0900 (KST) X-AuditID: cbfee690-b7fcd6d0000026e0-4c-53578ac810df Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F1.4A.25708.7CA87535; Wed, 23 Apr 2014 18:41:28 +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 <0N4H00C2S9L3HEB0@mmp2.samsung.com>; Wed, 23 Apr 2014 18:41:27 +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 7/9] pwm: pwm-tiecap: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:41:27 +0900 Message-id: <001101cf5ed8$32fe30a0$98fa91e0$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAGybA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t8zQ90TXeHBBsvvsFpcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlrJ19jKngH2vFmfaiBsYv LF2MnBwSAiYSUw42sELYYhIX7q1n62Lk4hASWMYocen9A1aYommbnrNDJKYzSmx6dYkVwvnN KNG06Qk7SBWbgJrEly+HwWwRAX2JS9cvgXUzCzhKnD/WD2YLCdhKNK64CraaU8BO4sCaX0D1 HBzCAj4StycmgoRZBFQleuZsZAOxeYHK9x2AKOcVEJT4MfkeC8RILYn1O48zQdjyEpvXvGUG GSMhoC7x6K8uxAVGEkfbXkCViEjse/GOEeRkCYFd7BI/+neyQ+wSkPg2+RALRK+sxKYDzBD/ SkocXHGDZQKjxCwkm2ch2TwLyeZZSFYsYGRZxSiaWpBcUJyUXmSiV5yYW1yal66XnJ+7iRES fxN2MN47YH2IMRlo/URmKdHkfGD85pXEGxqbGVmYmpgaG5lbmpEmrCTOq/YoKUhIID2xJDU7 NbUgtSi+qDQntfgQIxMHp1QD46pNtxcy1DIuuTFdcI3Nvnt3C2XmarpqW12+4Ft81eOIfZHz 3NYnxmXrtNufqCmd6jp9KIghsErzcfF86z8FMh+Zn/RmnhZISekxulWutNNkv/uKgKRvDy8y 1NiwOC08zuGj+szvgLns9+AezpiHf9bN3bTJJmLh/or608sL9phGvHKKtPjxUYmlOCPRUIu5 qDgRAFUtxj7VAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPKsWRmVeSWpSXmKPExsVy+t9jQd0TXeHBBhO6mSwuL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCesYM9bOPsZU8I+14kx7UQPjF5YuRk4OCQETiWmbnrND2GISF+6tZ+ti5OIQEpjOKLHp 1SVWCOc3o0TTpidgVWwCahJfvhwGs0UE9CUuXQcp4uRgFnCUOH+sH8wWErCVaFxxFWwDp4Cd xIE1v4DqOTiEBXwkbk9MBAmzCKhK9MzZyAZi8wKV7zsAUc4rICjxY/I9FoiRWhLrdx5ngrDl JTavecsMMkZCQF3i0V9diAuMJI62vYAqEZHY9+Id4wRGoVlIJs1CMmkWkkmzkLQsYGRZxSia WpBcUJyUnmukV5yYW1yal66XnJ+7iREc3c+kdzCuarA4xCjAwajEwyuxPCxYiDWxrLgy9xCj BAezkgjvhs7wYCHelMTKqtSi/Pii0pzU4kOMyUCPTmSWEk3OByaevJJ4Q2MTMyNLIzMLIxNz c9KElcR5D7ZaBwoJpCeWpGanphakFsFsYeLglGpgXDrd/esU1kdP7i5gXfNZ5VY5q4qa4TXh x96M6TzqF95ZPRP//69tSe0H7SQXjutTZ2R5nnyzc+ucxOqKm5q3nK/0TorOYwzY/DnesWeK 0AXbOzoTpOw+eH9kTLh5+mT7S4Pr6qJ8Lreu5L/Imn9PfXmA8QatKVVdn2o2XLeTTxUtXGfY xT3zkhJLcUaioRZzUXEiANkcB3EyAwAA 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-tiecap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index 032092c..74efbe7 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c @@ -209,10 +209,8 @@ static int ecap_pwm_probe(struct platform_device *pdev) u16 status; pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); - if (!pc) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pc) return -ENOMEM; - } clk = devm_clk_get(&pdev->dev, "fck"); if (IS_ERR(clk)) {