summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_aud2htx.c
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <musamaanjum@gmail.com>2021-04-07 14:56:34 +0500
committerMark Brown <broonie@kernel.org>2021-04-08 15:21:52 +0100
commita93799d55fd479f540ed97066e69114aa7709787 (patch)
treef99bb4f62f7b9d5f084c24c88af82ffebc3f3731 /sound/soc/fsl/fsl_aud2htx.c
parent38ec3006eccb46a6db6f4a36536f78db8e9042ac (diff)
ASoC: fsl: sunxi: remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message. Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com> Link: https://lore.kernel.org/r/20210407095634.GA1379642@LEGION Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_aud2htx.c')
-rw-r--r--sound/soc/fsl/fsl_aud2htx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_aud2htx.c b/sound/soc/fsl/fsl_aud2htx.c
index d70d5e75a30c..a328697511f7 100644
--- a/sound/soc/fsl/fsl_aud2htx.c
+++ b/sound/soc/fsl/fsl_aud2htx.c
@@ -198,10 +198,8 @@ static int fsl_aud2htx_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(regs)) {
- dev_err(&pdev->dev, "failed ioremap\n");
+ if (IS_ERR(regs))
return PTR_ERR(regs);
- }
aud2htx->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
&fsl_aud2htx_regmap_config);