Skip to content

Commit 9671847

Browse files
Shang XiaoJingbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 478cc2f commit 9671847

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi-cadence-xspi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,8 @@ static int cdns_xspi_probe(struct platform_device *pdev)
565565

566566
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sdma");
567567
cdns_xspi->sdmabase = devm_ioremap_resource(dev, res);
568-
if (IS_ERR(cdns_xspi->sdmabase)) {
569-
dev_err(dev, "Failed to remap SDMA address\n");
568+
if (IS_ERR(cdns_xspi->sdmabase))
570569
return PTR_ERR(cdns_xspi->sdmabase);
571-
}
572570
cdns_xspi->sdmasize = resource_size(res);
573571

574572
cdns_xspi->auxbase = devm_platform_ioremap_resource_byname(pdev, "aux");

0 commit comments

Comments
 (0)