From patchwork Mon Jan 16 06:44:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 91531 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1290681qgi; Sun, 15 Jan 2017 22:45:41 -0800 (PST) X-Received: by 10.99.127.71 with SMTP id p7mr38001895pgn.125.1484549141053; Sun, 15 Jan 2017 22:45:41 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si20584929pgi.313.2017.01.15.22.45.40; Sun, 15 Jan 2017 22:45:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751410AbdAPGpj (ORCPT + 13 others); Mon, 16 Jan 2017 01:45:39 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:65352 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbdAPGp3 (ORCPT ); Mon, 16 Jan 2017 01:45:29 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV007TC1FQSK50@mailout2.w1.samsung.com>; Mon, 16 Jan 2017 06:45:26 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064525eucas1p1eb1fabfa555ed26e9bbba94b5fa34737~aLZBvN_lb0708307083eucas1p1u; Mon, 16 Jan 2017 06:45:25 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 19.77.09557.50C6C785; Mon, 16 Jan 2017 06:45:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493~aLZBEZ1Tj0673806738eucas1p1a; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-51-587c6c05b952 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5F.A9.10233.EFB6C785; Mon, 16 Jan 2017 06:45:18 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJV00BS81FJUN70@eusync2.samsung.com>; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH 03/12] soc: samsung: pmu: Remove messages for failed memory allocation Date: Mon, 16 Jan 2017 07:44:58 +0100 Message-id: <1484549107-5957-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDIsWRmVeSWpSXmKPExsWy7djPc7qsOTURBlMe81tsnLGe1eL8+Q3s FlP+LGey2PT4GqvF5vl/GC0+9x5htJhxfh+Txdojd9ktDr9pZ7VYtesPowOXx85Zd9k9Nq3q ZPO4c20Pm8fmJfUefVtWMXp83iQXwBbFZZOSmpNZllqkb5fAlfHk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gFDia63XWBVIgLNjBINS3rB HGaBCUwSMz81MIFUCQtESMxs3wzUzsHBIqAqcepMAEiYV8Bd4vT3uSwQ6+QkTh6bDHYGp4CH xMR9rWBxIaCaGa+mMk9g5F3AyLCKUSS1tDg3PbfYSK84Mbe4NC9dLzk/dxMjMOi3Hfu5ZQdj 17vgQ4wCHIxKPLwLdlRHCLEmlhVX5h5ilOBgVhLhdcusiRDiTUmsrEotyo8vKs1JLT7EaAp0 00RmKdHkfGBE5pXEG5oYmlsaGhlbWJgbGSmJ8079cCVcSCA9sSQ1OzW1ILUIpo+Jg1OqgVGj oqzFX+u2m3uh+pGKBQsC3mz+vOi299dXE9bJK78PfVH7SH+JgvimhQzHeqIMVwZUlZ5Z8zHf 4mLyGXWP77n+R6OVWdtipi8InVfxIGLaL23f3FXNKYyx3XzN3jMv+0XNsj5ROUf4QfO8P1Ny d1/W3PrQw4FV08VihlplemuDlZNX/qy2xUosxRmJhlrMRcWJAFoFiCKQAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493 X-RootMTR: 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493 References: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Memory subsystem already prints message about failed memory allocation, there is no need to do it in the driver. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c index 0f4b4fce9d90..43937a3aea28 100644 --- a/drivers/soc/samsung/exynos-pmu.c +++ b/drivers/soc/samsung/exynos-pmu.c @@ -106,10 +106,8 @@ static int exynos_pmu_probe(struct platform_device *pdev) pmu_context = devm_kzalloc(&pdev->dev, sizeof(struct exynos_pmu_context), GFP_KERNEL); - if (!pmu_context) { - dev_err(dev, "Cannot allocate memory.\n"); + if (!pmu_context) return -ENOMEM; - } pmu_context->dev = dev; pmu_context->pmu_data = of_device_get_match_data(dev);