Commit a93799d5 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Mark Brown

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: default avatarMuhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210407095634.GA1379642@LEGIONSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 38ec3006
...@@ -198,10 +198,8 @@ static int fsl_aud2htx_probe(struct platform_device *pdev) ...@@ -198,10 +198,8 @@ static int fsl_aud2htx_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(&pdev->dev, res); regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(regs)) { if (IS_ERR(regs))
dev_err(&pdev->dev, "failed ioremap\n");
return PTR_ERR(regs); return PTR_ERR(regs);
}
aud2htx->regmap = devm_regmap_init_mmio(&pdev->dev, regs, aud2htx->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
&fsl_aud2htx_regmap_config); &fsl_aud2htx_regmap_config);
......
...@@ -1889,10 +1889,8 @@ static int fsl_easrc_probe(struct platform_device *pdev) ...@@ -1889,10 +1889,8 @@ static int fsl_easrc_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(dev, res); regs = devm_ioremap_resource(dev, res);
if (IS_ERR(regs)) { if (IS_ERR(regs))
dev_err(&pdev->dev, "failed ioremap\n");
return PTR_ERR(regs); return PTR_ERR(regs);
}
easrc->paddr = res->start; easrc->paddr = res->start;
......
...@@ -1706,10 +1706,8 @@ static int sun4i_codec_probe(struct platform_device *pdev) ...@@ -1706,10 +1706,8 @@ static int sun4i_codec_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(base)) { if (IS_ERR(base))
dev_err(&pdev->dev, "Failed to map the registers\n");
return PTR_ERR(base); return PTR_ERR(base);
}
quirks = of_device_get_match_data(&pdev->dev); quirks = of_device_get_match_data(&pdev->dev);
if (quirks == NULL) { if (quirks == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment