Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: dw: Remove duplicate error message

devm_platform_ioremap_resource() prints an error message depending on
the actual error. The caller doesn't need to repeat that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260128095748.4156926-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
5c6808d1 751ec6dd

+1 -3
+1 -3
drivers/spi/spi-dw-mmio.c
··· 104 104 return -ENOMEM; 105 105 106 106 dwsmscc->spi_mst = devm_platform_ioremap_resource(pdev, 1); 107 - if (IS_ERR(dwsmscc->spi_mst)) { 108 - dev_err(&pdev->dev, "SPI_MST region map failed\n"); 107 + if (IS_ERR(dwsmscc->spi_mst)) 109 108 return PTR_ERR(dwsmscc->spi_mst); 110 - } 111 109 112 110 dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon); 113 111 if (IS_ERR(dwsmscc->syscon))