From patchwork Tue Jan 14 02:05:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3483641 Return-Path: X-Original-To: patchwork-linux-arm@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 971BA9F391 for ; Tue, 14 Jan 2014 02:06:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC71120158 for ; Tue, 14 Jan 2014 02:06:17 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84DCD20155 for ; Tue, 14 Jan 2014 02:06:16 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2tON-0000ZE-P3; Tue, 14 Jan 2014 02:06:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2tOL-0005Ns-6O; Tue, 14 Jan 2014 02:06:09 +0000 Received: from mail-bk0-x229.google.com ([2a00:1450:4008:c01::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2tOI-0005N0-A4 for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2014 02:06:07 +0000 Received: by mail-bk0-f41.google.com with SMTP id v15so40740bkz.28 for ; Mon, 13 Jan 2014 18:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=gzUFdlkrMl5tBQO8dgpwaxPgKlhG2puRQSPBFCrcdzs=; b=Xq694uKv5hxWJfId9XkaNfQmJmonTHAxyYUSPzC67M/iVbYrexwEtFwYzCpHiFO+5W bxkSpuS+ZibFtiD2q5DhkA135sVbVVXT5pTWpNO2gwOrBoELHoe3G0ydRYIAgv9JT3zW vUbf+pVYHnG7yeARkgE2AeivSuiDssDoUFezAr6HfOnxavNQM0catLjxhA/25X4b6h3Q wkpR1++bj7Eod9AJdpjSe1IHgEghXiBewTsArYKjN+MRFpd2+kpYhGhG+MRJz/azbp6K fxuWScigB4jHPrvFifbBhxKDvoUcqEA/OalCOXxjTbWcYCl7aJZs5LTf7VprtR2H9P3T glVw== MIME-Version: 1.0 X-Received: by 10.205.105.134 with SMTP id dq6mr107343bkc.58.1389665142183; Mon, 13 Jan 2014 18:05:42 -0800 (PST) Received: by 10.204.74.130 with HTTP; Mon, 13 Jan 2014 18:05:42 -0800 (PST) Date: Tue, 14 Jan 2014 10:05:42 +0800 Message-ID: Subject: [PATCH -next] clk: exynos-audss: remove redundant dev_err call in exynos_audss_clk_probe() From: Wei Yongjun To: t.figa@samsung.com, mturquette@linaro.org, kgene.kim@samsung.com, grant.likely@linaro.org, robh+dt@kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140113_210606_503846_EEDC1DE3 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: yongjun_wei@trendmicro.com.cn, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun Reviewed-by: Jingoo Han --- drivers/clk/samsung/clk-exynos-audss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c index 884187f..01ef381 100644 --- a/drivers/clk/samsung/clk-exynos-audss.c +++ b/drivers/clk/samsung/clk-exynos-audss.c @@ -94,10 +94,8 @@ static int exynos_audss_clk_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); reg_base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(reg_base)) { - dev_err(&pdev->dev, "failed to map audss registers\n"); + if (IS_ERR(reg_base)) return PTR_ERR(reg_base); - } clk_table = devm_kzalloc(&pdev->dev, sizeof(struct clk *) * EXYNOS_AUDSS_MAX_CLKS,