From patchwork Wed Feb 26 01:12:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 324160 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 7352C2C00A0 for ; Wed, 26 Feb 2014 12:12:21 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751100AbaBZBMU (ORCPT ); Tue, 25 Feb 2014 20:12:20 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:31587 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbaBZBMT (ORCPT ); Tue, 25 Feb 2014 20:12:19 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1K0091IWOI0N00@mailout4.samsung.com> for linux-pwm@vger.kernel.org; Wed, 26 Feb 2014 10:12:18 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id D8.B8.12635.27F3D035; Wed, 26 Feb 2014 10:12:18 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-08-530d3f725799 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 9D.A7.28157.27F3D035; Wed, 26 Feb 2014 10:12:18 +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 <0N1K00K3EWOH3000@mmp1.samsung.com>; Wed, 26 Feb 2014 10:12:17 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Philip Avinash' , 'Sourav Poddar' References: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> In-reply-to: <000701cf328e$00ed24c0$02c76e40$%han@samsung.com> Subject: [PATCH 7/9] pwm: pwm-tiecap: Remove unnecessary OOM messages Date: Wed, 26 Feb 2014 10:12:17 +0900 Message-id: <001a01cf328f$cab7d0b0$60277210$%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+vBVdBShKGb71bK5ER2QAAZkjQ X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsVy+t8zQ90ie95ggxdTBSwe3dnPZHF54SVW i7t3VzFaTOt6xGTxc9c8FgdWj52z7rJ79G1Zxehx/MZ2Jo/Pm+QCWKK4bFJSczLLUov07RK4 MtbOPsZU8I+14kx7UQPjF5YuRk4OCQETiXlLJzFD2GISF+6tZ+ti5OIQEljGKPHu3DF2mKKJ /yaxQyQWMUrs2bKXBcL5zSjx989RJpAqNgE1iS9fDoN1iAjoS1y6fokVpIhZYAqjxJcPC8GK hARsJe7d2cAIYnMK2EksWrUC7A5hAVeJG2f62EBsFgFViaXPN4PV8ALVf9zbwgZhC0r8mHwP rJ5ZQEti/c7jTBC2vMTmNW+BfuAAOlVd4tFfXYiwiMS+F+8YIe4xkvj3+wrY0RIC19glPs5+ DbVLQOLb5EMsEL2yEpsOQINCUuLgihssExglZiHZPAvJ5llINs9Csm4BI8sqRtHUguSC4qT0 IkO94sTc4tK8dL3k/NxNjJAI7d3BePuA9SHGZKD1E5mlRJPzgRGeVxJvaGxmZGFqYmpsZG5p Rpqwkjhv0sOkICGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2MDhPbBQ2e1Sz6zNsk4T7D85Cc 7wPPLcqsP0UPhct2ZRyN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m2Uszev8xUlJZbijERDLeai4kQA7/h9kEMDAAA= 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)) {