mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-04-03 23:38:12 -04:00
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>
This commit is contained in:
committed by
Mark Brown
parent
751ec6dd67
commit
5c6808d104
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user