Message ID | 1484549107-5957-4-git-send-email-m.szyprowski@samsung.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-samsung-soc-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C06D6020A for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Mon, 16 Jan 2017 06:45:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA3842838C for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Mon, 16 Jan 2017 06:45:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF0A1283CB; Mon, 16 Jan 2017 06:45:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 659E62838C for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Mon, 16 Jan 2017 06:45:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751414AbdAPGpl (ORCPT <rfc822;patchwork-linux-samsung-soc@patchwork.kernel.org>); Mon, 16 Jan 2017 01:45:41 -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 <rfc822;linux-samsung-soc@vger.kernel.org>); 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 <m.szyprowski@samsung.com> 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 <m.szyprowski@samsung.com>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Tomasz Figa <tomasz.figa@gmail.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> 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 ZPO4c20Pm8fmJfUefVtWMXp83iQXwBbFZZOSmpNZllqkb5fAlfHkzEemgndsFRMb37I2MD5h 7WLk5JAQMJGYsvEBG4QtJnHh3nogm4tDSGApo8Tt5XMZIZzPjBJdj+8wwnS8ursCKrGMUWLx 5xMsEE4Dk8Td59NZQKrYBAwlut52gc0SEWhmlJh5dy87iMMs0Mck8XnzXrBZwgIREjPbNzN3 MXJwsAioSpw6EwAS5hVwlzj9fS4LxDo5iZPHJoMdyyngITFxXyvYNgmBbnaJlp9PWUB6JQRk JTYdYIaod5G4cWYRE4QtLPHq+BZ2CFtG4vLkbqiZ/YwSTa3aEPYMRolzb3khbGuJw8cvgu1i FuCTmLRtOjPEeF6JjjYhiBIPiYWHe5ggwo4Sez7kQ/w+m1Hi/aONzBMYZRYwMqxiFEktLc5N Ty021itOzC0uzUvXS87P3cQIjPPT/45/2sH49YTVIUYBDkYlHt4FO6ojhFgTy4orcw8xSnAw K4nwumXWRAjxpiRWVqUW5ccXleakFh9ilOZgURLn3bPgSriQQHpiSWp2ampBahFMlomDU6qB UfXCnFLmioOPOMriFwZrblz4nl1nxeSgtX1POdpn8DxcZ8U/TcMwfLuroVue6xfjWo/N222D dgiu1PC6eWvSJ6Zz+zKubnGs21WzjukXE+uahjXBEwqcOx/+9I+Jv7LbnvlW3v83IulHO19a sPnHpGoZObluCHsSr/j33+aQ43efqz9MUjNMU2Ipzkg01GIuKk4EAIgQ5ojvAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsVy+t/xK7r/smsiDBZsNbHYOGM9q8X58xvY Lab8Wc5ksenxNVaLzfP/MFp87j3CaDHj/D4mi7VH7rJbHH7TzmqxatcfRgcuj52z7rJ7bFrV yeZx59oeNo/NS+o9+rasYvT4vEkugC3KzSYjNTEltUghNS85PyUzL91WKTTETddCSSEvMTfV VilC1zckSEmhLDGnFMgzMkADDs4B7sFK+nYJbhlPznxkKnjHVjGx8S1rA+MT1i5GTg4JAROJ V3dXMELYYhIX7q1n62Lk4hASWMIo8fzif2YIp4lJ4mzvKrAqNgFDia63XWBVIgLNjBINS3rB 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?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493 X-RootMTR: 20170116064524eucas1p164e0f5bd1252e8599bf2570851772493 References: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> <CGME20170116064524eucas1p164e0f5bd1252e8599bf2570851772493@eucas1p1.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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);
Memory subsystem already prints message about failed memory allocation, there is no need to do it in the driver. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/soc/samsung/exynos-pmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)