From patchwork Wed Apr 23 09:40:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341742 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 6D86714009A for ; Wed, 23 Apr 2014 19:40:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbaDWJkc (ORCPT ); Wed, 23 Apr 2014 05:40:32 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:33945 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbaDWJka (ORCPT ); Wed, 23 Apr 2014 05:40:30 -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 <0N4H007S59JHDF00@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:40:29 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FE.D2.14563.D8A87535; Wed, 23 Apr 2014 18:40:29 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-96-53578a8dc4dd Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F3.1A.25708.D8A87535; Wed, 23 Apr 2014 18:40:29 +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 <0N4H00FLR9JHQJA0@mmp1.samsung.com>; Wed, 23 Apr 2014 18:40:29 +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 4/9] pwm: renesas-tpu: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:40:29 +0900 Message-id: <000e01cf5ed8$104fdd10$30ef9730$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAEgKg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zY93ervBgg7UtphaXF15itbh7dxWj xc9d81gcmD12zrrL7tG3ZRWjx+dNcgHMUVw2Kak5mWWpRfp2CVwZDx9OZi6YxVax9t16lgbG PtYuRk4OCQETibY3F1kgbDGJC/fWs3UxcnEICSxjlDi58BE7TNHMfwcYIRKLGCWmrVoC5fxm lLj09CkbSBWbgJrEly+HwTpEBPQlLl2/BLaCWcBR4vyxfjBbSMBWonHFVbB1nAJ2EgfW/AKr Fxbwlfh98BwTiM0ioCrRMv0uM4jNC1R/cdcRFghbUOLH5HssEDO1JNbvPM4EYctLbF7zFqie A+hSdYlHf3UhTjCSmLjzFtQJIhL7XrwDu1lCYB+7xPWJbxghdglIfJt8iAWiV1Zi0wFmiIcl JQ6uuMEygVFiFpLNs5BsnoVk8ywkKxYwsqxiFE0tSC4oTkovMtIrTswtLs1L10vOz93ECInB vh2MNw9YH2JMBlo/kVlKNDkfGMN5JfGGxmZGFqYmpsZG5pZmpAkrifMuepgUJCSQnliSmp2a WpBaFF9UmpNafIiRiYNTqoFxseE+rsUR/Av/mvzbGurnNkmPkTv1s/3D7KsMar93hq3UvpkW bSTex9P1Uvli9/Z3s1i8RbuvSjJazRMT23fl3AzTrHMnBEVubyxYY/nkZpZf7UvblbWTp0wz KpScyOLB9t9m2wrdMyq9ZfOzbF2mzDryqPlB+dHORRu+TjrE5r4v6UKE+PcbSizFGYmGWsxF xYkA49hCutcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsVy+t9jAd3ervBgg3lHDS0uL7zEanH37ipG i5+75rE4MHvsnHWX3aNvyypGj8+b5AKYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwM dQ0tLcyVFPISc1NtlVx8AnTdMnOANikplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0Jgusx MkADCesYMx4+nMxcMIutYu279SwNjH2sXYycHBICJhIz/x1ghLDFJC7cW8/WxcjFISSwiFFi 2qoljBDOb0aJS0+fsoFUsQmoSXz5cpgdxBYR0Je4dP0S2CRmAUeJ88f6wWwhAVuJxhVXWUBs TgE7iQNrfoHVCwv4Svw+eI4JxGYRUJVomX6XGcTmBaq/uOsIC4QtKPFj8j0WiJlaEut3HmeC sOUlNq95C1TPAXSpusSjv7oQJxhJTNx5C+oEEYl9L94xTmAUmoVk0iwkk2YhmTQLScsCRpZV jKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGMER/kx6B+OqBotDjAIcjEo8vBLLw4KFWBPLiitz DzFKcDArifBu6AwPFuJNSaysSi3Kjy8qzUktPsSYDPToRGYp0eR8YPLJK4k3NDYxM7I0MrMw MjE3J01YSZz3YKt1oJBAemJJanZqakFqEcwWJg5OqQbG0lPz5dfsjrqfX7KcQ0vu55WzwR8y HMXnc5jOaDGK5JmkHjBZwmCdGl+Z8ZLj3atf5/H3egpMdZypaSvbuUhz/Zn3D/Rc+S2nlnf9 k+n+mtSoHHpJM06v30SKK+77ox0/DdwkurwXdkYd1LiufbNitU2M+6IUk5eby7hWdCgmPwyq b30ZJabEUpyRaKjFXFScCABrs4jVNAMAAA== 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-renesas-tpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-renesas-tpu.c b/drivers/pwm/pwm-renesas-tpu.c index aff6ba9..cc13ff4 100644 --- a/drivers/pwm/pwm-renesas-tpu.c +++ b/drivers/pwm/pwm-renesas-tpu.c @@ -405,10 +405,8 @@ static int tpu_probe(struct platform_device *pdev) int ret; tpu = devm_kzalloc(&pdev->dev, sizeof(*tpu), GFP_KERNEL); - if (tpu == NULL) { - dev_err(&pdev->dev, "failed to allocate driver data\n"); + if (tpu == NULL) return -ENOMEM; - } spin_lock_init(&tpu->lock); tpu->pdev = pdev;