Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfd7d1aa authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe()



There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 2a956ec0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);