spi: sifive: Remove redundant dev_err call in sifive_spi_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Wei Yongjun 2019-02-22 05:46:32 +00:00 committed by Mark Brown
parent 049e5feae1
commit daad4d2a0a
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -310,7 +310,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
spi->regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(spi->regs)) {
dev_err(&pdev->dev, "Unable to map IO resources\n");
ret = PTR_ERR(spi->regs);
goto put_master;
}