From patchwork Wed May 7 06:04: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: 4125761 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1C1169F9BC for ; Wed, 7 May 2014 06:06:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 407E2201FB for ; Wed, 7 May 2014 06:06:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF98B202DD for ; Wed, 7 May 2014 06:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065AbaEGGFz (ORCPT ); Wed, 7 May 2014 02:05:55 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:24367 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753512AbaEGGEu (ORCPT ); Wed, 7 May 2014 02:04:50 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5600K39WW1A1C0@mailout3.samsung.com> for linux-pm@vger.kernel.org; Wed, 07 May 2014 15:04:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F5.A5.09952.00DC9635; Wed, 07 May 2014 15:04:48 +0900 (KST) X-AuditID: cbfee690-b7fcd6d0000026e0-cc-5369cd00301b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 68.73.25708.00DC9635; Wed, 07 May 2014 15:04:48 +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 <0N5600AP4WW05F00@mmp2.samsung.com>; Wed, 07 May 2014 15:04:48 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, 'Jingoo Han' , 'Amit Daniel Kachhap' References: <01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com> In-reply-to: <01a401cf69ba$0f1b88d0$2d529a70$%han@samsung.com> Subject: [PATCH 2/3] thermal: exynos: remove unnecessary OOM messages Date: Wed, 07 May 2014 15:04:48 +0900 Message-id: <01ac01cf69ba$40962910$c1c27b30$%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: Ac9pug8FVI2rvJM7TgGUyoi45znyPAAABiog Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsVy+t8zI12Gs5nBBl8vGVk0XA2xWLP/J5PF 5YWXWC0+9x5htHjysI/NgdVj8Z6XTB59W1Yxehy/sZ3J4/MmuQCWKC6blNSczLLUIn27BK6M xzM2sxT0c1Y0vaxqYDzD3sXIySEhYCIx5do+VghbTOLCvfVsILaQwDJGiW2fzGFqGtZeYupi 5AKKT2eUONf4Esr5zSgx+dU0sG42ATWJL18Og00VEVCVuHW6B6yIWWAxo8TMfTfYIcbaSry4 0soCYnMK2EkcvbgErFlYwFViSss8sDgLUPPCvg5mEJsXqH7VgXOMELagxI/J98BqmAW0JNbv PM4EYctLbF7zFqieA+hUdYlHf3VBTBEBI4lnrX4QFSIS+168YwQ5R0LgHLvEnYWnGCFWCUh8 m3yIBaJVVmLTAWaIhyUlDq64wTKBUWIWksWzkCyehWTxLCQrF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Y21QbsgWYaajyUenVeVK11QwpJmrneqYa950bZf97nOTClzYM/7E2xRGJge6Kd4oTrLmZUj6 GP3+nFXjlYvuNeG3Za3N+OpvrZ2h+fPnn90zvfad+Le91eaQ9VXRaedP7ik96jyN0ff5S41r ysoZ/Z6hPAeUa+ZyMuaZCMaYKbEUZyQaajEXFScCAJc+isFBAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han --- drivers/thermal/samsung/exynos_tmu.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 0d96a51..9d17086 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -607,10 +607,8 @@ static int exynos_tmu_probe(struct platform_device *pdev) data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data), GFP_KERNEL); - if (!data) { - dev_err(&pdev->dev, "Failed to allocate driver structure\n"); + if (!data) return -ENOMEM; - } platform_set_drvdata(pdev, data); mutex_init(&data->lock); @@ -656,7 +654,6 @@ static int exynos_tmu_probe(struct platform_device *pdev) sensor_conf = devm_kzalloc(&pdev->dev, sizeof(struct thermal_sensor_conf), GFP_KERNEL); if (!sensor_conf) { - dev_err(&pdev->dev, "Failed to allocate registration struct\n"); ret = -ENOMEM; goto err_clk; }