From patchwork Thu Aug 29 00:00:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 270652 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 9F7B82C00FA for ; Thu, 29 Aug 2013 10:00:38 +1000 (EST) Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id DCEA42C0098 for ; Thu, 29 Aug 2013 10:00:10 +1000 (EST) Received: by mail-bk0-f51.google.com with SMTP id mx10so2420795bkb.24 for ; Wed, 28 Aug 2013 17:00:05 -0700 (PDT) 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=PHayJCTGwChyVd22QMP/vY80tn6dRU1DwHPygUS3tzc=; b=w2dvQ5Pu00LkvUmWl1JPAgreg3Rep/2IgT/A3yRBBQ9MwKdPDaSLvCxBbvmk4JWmzc UFN1oFbsqvDOTYo2dk76E4okEqBz2sv4QsbaKLxaUbs4eHoXw7nWf0ZpfBnolQBUHRbV WrEpBIx8Qp8qeiS0cF7c35cSG2yl8BifG85gptkwwE51XwKFbm7dtrnMXzYf/y6oYik5 TPKsnzA3NEJR01GFXkgacfjd+PThp7nU0D12DReczxVxFBkoH5eT9dIdeyT61zLzmJLs Rchnnf7EeCloLShWALJieCnD9nSNSZIJgCOxJjzkJ5hc+6MOSGVC9o2jeL0YEINvUDAo oNKg== MIME-Version: 1.0 X-Received: by 10.205.33.207 with SMTP id sp15mr86973bkb.2.1377734405431; Wed, 28 Aug 2013 17:00:05 -0700 (PDT) Received: by 10.205.13.74 with HTTP; Wed, 28 Aug 2013 17:00:05 -0700 (PDT) Date: Thu, 29 Aug 2013 08:00:05 +0800 Message-ID: Subject: [PATCH -next] ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe() From: Wei Yongjun To: timur@tabi.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.de, grant.likely@linaro.org, rob.herring@calxeda.com Cc: devicetree@vger.kernel.org, yongjun_wei@trendmicro.com.cn, linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16rc2 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- sound/soc/fsl/fsl_spdif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index a9798aa..e93dc0d 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1113,10 +1113,8 @@ static int fsl_spdif_probe(struct platform_device *pdev) } regs = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(regs)) { - dev_err(&pdev->dev, "could not map device resources\n"); + if (IS_ERR(regs)) return PTR_ERR(regs); - } spdif_priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "core", regs, &fsl_spdif_regmap_config);