Skip to content

Commit 5c6808d

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent 751ec6d commit 5c6808d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/spi/spi-dw-mmio.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ static int dw_spi_mscc_init(struct platform_device *pdev,
104104
return -ENOMEM;
105105

106106
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))
109108
return PTR_ERR(dwsmscc->spi_mst);
110-
}
111109

112110
dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon);
113111
if (IS_ERR(dwsmscc->syscon))

0 commit comments

Comments
 (0)