]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: dw: Remove duplicate error message
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 28 Jan 2026 09:57:48 +0000 (10:57 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jan 2026 11:58:11 +0000 (11:58 +0000)
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>
drivers/spi/spi-dw-mmio.c

index b8123db4ad559e7f90556cefc525fc179f052027..1bfdf24c3227974938c369237e86c125ca46a4bb 100644 (file)
@@ -104,10 +104,8 @@ static int dw_spi_mscc_init(struct platform_device *pdev,
                return -ENOMEM;
 
        dwsmscc->spi_mst = devm_platform_ioremap_resource(pdev, 1);
-       if (IS_ERR(dwsmscc->spi_mst)) {
-               dev_err(&pdev->dev, "SPI_MST region map failed\n");
+       if (IS_ERR(dwsmscc->spi_mst))
                return PTR_ERR(dwsmscc->spi_mst);
-       }
 
        dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon);
        if (IS_ERR(dwsmscc->syscon))