From patchwork Wed Apr 23 09:41:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 341746 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 74EDD14009A for ; Wed, 23 Apr 2014 19:41:59 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754618AbaDWJlz (ORCPT ); Wed, 23 Apr 2014 05:41:55 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:34279 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbaDWJlu (ORCPT ); Wed, 23 Apr 2014 05:41:50 -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 <0N4H00JZC9LPN3D0@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Wed, 23 Apr 2014 18:41:50 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 2E.63.14563.CDA87535; Wed, 23 Apr 2014 18:41:48 +0900 (KST) X-AuditID: cbfee68e-b7fd86d0000038e3-e9-53578adc7c7b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 57.29.27725.CDA87535; Wed, 23 Apr 2014 18:41:48 +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 <0N4H00H2U9LOGT70@mmp1.samsung.com>; Wed, 23 Apr 2014 18:41:48 +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 8/9] pwm: tiehrpwm: Remove unnecessary OOM messages Date: Wed, 23 Apr 2014 18:41:48 +0900 Message-id: <001201cf5ed8$3f34b740$bd9e25c0$%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: Ac9e17zNcgiAOVMaQ46j1EKB6vs2hAAAHcfw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zQ907XeHBBufvqlpcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwR3HZpKTmZJalFunbJXBlPHsxkamgi63i0rLZbA2M DaxdjJwcEgImEts+HISyxSQu3FvP1sXIxSEksIxRYsH1zywwRdMfb4ZKLGKUeHTmFzuE85tR 4seB3WwgVWwCahJfvhxmB7FFBPQlLl2/BDaWWcBR4vyxfjBbSMBWonHFVbCpnAJ2EgfWgAzi 4BAW8JL4sqoaJMwioCqxceNUJhCbF6h8wuYrrBC2oMSPyfdYIEZqSazfeZwJwpaX2LzmLTPI GAkBdYlHf3UhLjCS+Hmyhw2iRERi34t3jCAnSwjsY5doPHGABWKXgMS3yYdYIHplJTYdYIb4 V1Li4IobLBMYJWYh2TwLyeZZSDbPQrJiASPLKkbR1ILkguKk9CIjveLE3OLSvHS95PzcTYyQ COzbwXjzgPUhxmSg9ROZpUST84ERnFcSb2hsZmRhamJqbGRuaUaasJI476KHSUFCAumJJanZ qakFqUXxRaU5qcWHGJk4OKUaGHn2zV8849K1hLrZGf//pzZLXOj1/Cj1as/+2TXCc9fKP3p0 q9F3+dccKYfyd9cvhvxe195fEMX9aG2Z7fqFMu11bEtllUJMfmzJvWm1ctvN2adUbcx7bO0N r05mnxTiwpmwemd5/S2hiaG3nrseaXqjcK/ByvRkX/ab74+vv72d9ff314nGvwuUWIozEg21 mIuKEwGVkE+41gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsVy+t9jAd07XeHBBluXKFlcXniJ1eLu3VWM Fj93zWNxYPbYOesuu0ffllWMHp83yQUwRzUw2mSkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY 6hpaWpgrKeQl5qbaKrn4BOi6ZeYAbVJSKEvMKQUKBSQWFyvp22GaEBripmsB0xih6xsSBNdj ZIAGEtYxZjx7MZGpoIut4tKy2WwNjA2sXYycHBICJhLTH29mg7DFJC7cWw9kc3EICSxilHh0 5hc7hPObUeLHgd1gVWwCahJfvhxmB7FFBPQlLl2/BDaJWcBR4vyxfjBbSMBWonHFVRYQm1PA TuLAGpBBHBzCAl4SX1ZVg4RZBFQlNm6cygRi8wKVT9h8hRXCFpT4MfkeC8RILYn1O48zQdjy EpvXvGUGGSMhoC7x6K8uxAVGEj9P9rBBlIhI7HvxjnECo9AsJJNmIZk0C8mkWUhaFjCyrGIU TS1ILihOSs811CtOzC0uzUvXS87P3cQIju9nUjsYVzZYHGIU4GBU4uEtWBkWLMSaWFZcmXuI UYKDWUmEd0NneLAQb0piZVVqUX58UWlOavEhxmSgRycyS4km5wNTT15JvKGxiZmRpZGZhZGJ uTlpwkrivAdarQOFBNITS1KzU1MLUotgtjBxcEo1MO4stt1+6nhMk87H0AT1S7n7Zi27lh/c O+nz3Y0rVsq4CF4/w91uct1rQrWwx0QZrehgHuHguQk62V6/W3hn31vkXvjg+OQEsYynwh2W 8Ta3Wg5oLEsov6fWkrQ5dn+2nPo2SwczjmN3fm9jFXvJeG32+jd/1s+bdC/A6JeQwu1g1iUH FnxfWKXEUpyRaKjFXFScCADO7uOiMwMAAA== 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-tiehrpwm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index aee4471..3a31c08 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -440,10 +440,8 @@ static int ehrpwm_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)) {