From patchwork Wed Apr 23 09:42: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: 341747 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 E0E0914009A for ; Wed, 23 Apr 2014 19:42:22 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbaDWJmV (ORCPT ); Wed, 23 Apr 2014 05:42:21 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:34364 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbaDWJmT (ORCPT ); Wed, 23 Apr 2014 05:42:19 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4H007FZ9MGWF00@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:42:17 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id B9.93.14563.2FA87535; Wed, 23 Apr 2014 18:42:10 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-d6-53578af24dbd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E8.49.27725.2FA87535; Wed, 23 Apr 2014 18:42: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 <0N4H00EIC9MAXA50@mmp2.samsung.com>; Wed, 23 Apr 2014 18:42: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 9/9] pwm: vt8500: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:42:10 +0900 Message-id: <001301cf5ed8$4c29fa00$e47dee00$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAINBQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t8zQ91PXeHBBucv6ltcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlnG47ylowka3i/rp5rA2M raxdjBwcEgImEoduhXQxcgKZYhIX7q1n62Lk4hASWMYocf3sYzaIhIlE298XTBCJ6YwSOw5f ZYZwfjNKPH2xAayKTUBN4suXw+wgtoiAvsSl65dYQWxmAUeJ88f6wWwhAVuJxhVXWUBsTgE7 iQNrfoHVCwt4SMzu6ACbwyKgKjGt8SJYPS9Q/a/WRWwQtqDEj8n3WCBmakms33mcCcKWl9i8 5i0zxDfqEo/+6oKYIgJGEsdOhEJUiEjse/GOEeKXfewS664lQmwSkPg2+RALRKesxKYDzBAl khIHV9xgmcAoMQvJ3llI9s5CsncWkg0LGFlWMYqmFiQXFCelFxnpFSfmFpfmpesl5+duYoRE X98OxpsHrA8xJgOtn8gsJZqcD4zevJJ4Q2MzIwtTE1NjI3NLM9KElcR5Fz1MChISSE8sSc1O TS1ILYovKs1JLT7EyMTBKdXAyFC6KVh3yRwBx2Atxe0fg54GRm2eaPUrSOdbxRfBq05/vSS8 La98bzaU9t13WMxy11zpQjZju3dWXGWadiq3t79wSv/9yJKn/eCTfM8JU1Zdaj4un/PD8rKG 9eQQJy3JzN6iCe6i5WcONiv7Ls8+ze06Rf7o/rziQ2uev909R8KqKfVH4DsWJZbijERDLeai 4kQAzt/aU9QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsVy+t9jQd1PXeHBBodm6VhcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwRzUw2mSkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY 6hpaWpgrKeQl5qbaKrn4BOi6ZeYAbVJSKEvMKQUKBSQWFyvp22GaEBripmsB0xih6xsSBNdj ZIAGEtYxZpxuO8paMJGt4v66eawNjK2sXYycHBICJhJtf18wQdhiEhfurWfrYuTiEBKYziix 4/BVZgjnN6PE0xcb2ECq2ATUJL58OcwOYosI6Etcun4JbBKzgKPE+WP9YLaQgK1E44qrLCA2 p4CdxIE1v8DqhQU8JGZ3dIDNYRFQlZjWeBGsnheo/lfrIjYIW1Dix+R7LBAztSTW7zzOBGHL S2xe8xboIA6gS9UlHv3VBTFFBIwkjp0IhagQkdj34h3jBEahWUgGzUIyaBaSQbOQtCxgZFnF KJpakFxQnJSea6hXnJhbXJqXrpecn7uJERzfz6R2MK5ssDjEKMDBqMTDW7AyLFiINbGsuDL3 EKMEB7OSCO+GzvBgId6UxMqq1KL8+KLSnNTiQ4zJQH9OZJYSTc4Hpp68knhDYxMzI0sjMwsj E3Nz0oSVxHkPtFoHCgmkJ5akZqemFqQWwWxh4uCUamCcIJx74ng3499NX305Wl2UmHLVdIVk tvLOdW/QTE0zPTTly3m++IMH13/fpGfycuvj+u0rU5bOjmisyqo2XdjFqiV5hrtZ4z2r6+Td wnu6N63WOpLzPyVduOdR9ExV8XylVz2GDpIzFMvMl99VOmNyOaLlz84Q3saUh3fuVH/eqC8p fmCLkb0SS3FGoqEWc1FxIgCOIg+2MwMAAA== 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-vt8500.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c index 323125a..652e6b5 100644 --- a/drivers/pwm/pwm-vt8500.c +++ b/drivers/pwm/pwm-vt8500.c @@ -211,10 +211,8 @@ static int vt8500_pwm_probe(struct platform_device *pdev) } chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); - if (chip == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (chip == NULL) return -ENOMEM; - } chip->chip.dev = &pdev->dev; chip->chip.ops = &vt8500_pwm_ops;