diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2021-03-02 16:56:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-10 16:13:18 +0300 |
commit | 4c869beda489efa3accfc6ca3177c01b97bea99e (patch) | |
tree | fac00453cd1234856d9cf66ece1f80406c2469c3 /sound/soc/codecs/jz4760.c | |
parent | 7942bf0671721f760992861d712e3dfaafe1720e (diff) | |
download | linux-4c869beda489efa3accfc6ca3177c01b97bea99e.tar.xz |
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>
Diffstat (limited to 'sound/soc/codecs/jz4760.c')
-rw-r--r-- | sound/soc/codecs/jz4760.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c index e8f28ccc145a..5ae0e312bcfc 100644 --- a/sound/soc/codecs/jz4760.c +++ b/sound/soc/codecs/jz4760.c @@ -841,11 +841,8 @@ static int jz4760_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, &jz4760_codec_regmap_config); |