diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-03-01 16:37:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-01 21:05:10 +0300 |
commit | 1f598e6861ab1d3cc46d6eff155c0a0a6736de38 (patch) | |
tree | eb06dbae827e2a6a2cb92dab901461a234bae59c /sound/soc/atmel/atmel-pdmic.c | |
parent | 1e8ba922c0fca2586cc43a4884e071f8c5446e49 (diff) | |
download | linux-1f598e6861ab1d3cc46d6eff155c0a0a6736de38.tar.xz |
ASoC: atmel: Remove redundant dev_err() call in probe function
There is an error message within devm_ioremap_resource already,
so remove the redundant dev_err() call.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel-pdmic.c')
-rw-r--r-- | sound/soc/atmel/atmel-pdmic.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index 5f72baa5f5c7..53217dfac5fe 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -631,11 +631,8 @@ static int atmel_pdmic_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); io_base = devm_ioremap_resource(dev, res); - if (IS_ERR(io_base)) { - ret = PTR_ERR(io_base); - dev_err(dev, "failed to remap register memory: %d\n", ret); - return ret; - } + if (IS_ERR(io_base)) + return PTR_ERR(io_base); dd->phy_base = res->start; |