Skip to content

Commit

Permalink
ASoC: codecs/jz4770: Remove superfluous error message
Browse files Browse the repository at this point in the history
The function devm_platform_ioremap_resource has already contained
error message if failed, so remove superfluous dev_err here.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20210307072133.10832-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Tang Bin authored and Mark Brown committed Mar 10, 2021
1 parent 20d1705 commit cc2d742
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sound/soc/codecs/jz4770.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,11 +893,8 @@ static int jz4770_codec_probe(struct platform_device *pdev)
codec->dev = dev;

codec->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(codec->base)) {
ret = PTR_ERR(codec->base);
dev_err(dev, "Failed to ioremap mmio memory: %d\n", ret);
return ret;
}
if (IS_ERR(codec->base))
return PTR_ERR(codec->base);

codec->regmap = devm_regmap_init(dev, NULL, codec,
&jz4770_codec_regmap_config);
Expand Down

0 comments on commit cc2d742

Please sign in to comment.