diff options
author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-09-23 18:17:26 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-23 13:56:28 +0100 |
commit | 9671847f93a5291ad85f88210fb56e1a946b757b (patch) | |
tree | d0e02c1dd00818fe9f841f17cb46ae3af0827ba1 /drivers/spi/spi-cadence-xspi.c | |
parent | 478cc2fc3dd782f7935bc0ab84c198691ea83fa3 (diff) | |
download | linux-9671847f93a5291ad85f88210fb56e1a946b757b.tar.gz linux-9671847f93a5291ad85f88210fb56e1a946b757b.tar.bz2 linux-9671847f93a5291ad85f88210fb56e1a946b757b.zip |
spi: cadence: Remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220923101726.19420-1-shangxiaojing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cadence-xspi.c')
-rw-r--r-- | drivers/spi/spi-cadence-xspi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c index 3ab19be83095..9e187f9c6c95 100644 --- a/drivers/spi/spi-cadence-xspi.c +++ b/drivers/spi/spi-cadence-xspi.c @@ -565,10 +565,8 @@ static int cdns_xspi_probe(struct platform_device *pdev) res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sdma"); cdns_xspi->sdmabase = devm_ioremap_resource(dev, res); - if (IS_ERR(cdns_xspi->sdmabase)) { - dev_err(dev, "Failed to remap SDMA address\n"); + if (IS_ERR(cdns_xspi->sdmabase)) return PTR_ERR(cdns_xspi->sdmabase); - } cdns_xspi->sdmasize = resource_size(res); cdns_xspi->auxbase = devm_platform_ioremap_resource_byname(pdev, "aux"); |