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>
This commit is contained in:
parent
1e8ba922c0
commit
1f598e6861
@ -582,11 +582,8 @@ static int atmel_classd_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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user