ASoC: codec: Omit superfluous error message in jz4760_codec_probe()
The function devm_platform_ioremap_resource has already contained error message, so remove the redundant dev_err here. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Acked-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20210302135630.11456-1-tangbin@cmss.chinamobile.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7942bf0671
commit
4c869beda4
@ -841,11 +841,8 @@ static int jz4760_codec_probe(struct platform_device *pdev)
|
|||||||
codec->dev = dev;
|
codec->dev = dev;
|
||||||
|
|
||||||
codec->base = devm_platform_ioremap_resource(pdev, 0);
|
codec->base = devm_platform_ioremap_resource(pdev, 0);
|
||||||
if (IS_ERR(codec->base)) {
|
if (IS_ERR(codec->base))
|
||||||
ret = PTR_ERR(codec->base);
|
return PTR_ERR(codec->base);
|
||||||
dev_err(dev, "Failed to ioremap mmio memory: %d\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
codec->regmap = devm_regmap_init(dev, NULL, codec,
|
codec->regmap = devm_regmap_init(dev, NULL, codec,
|
||||||
&jz4760_codec_regmap_config);
|
&jz4760_codec_regmap_config);
|
||||||
|
Loading…
Reference in New Issue
Block a user