Skip to contentSkip to conversation

spi: sifive: Remove redundant dev_err call in sifive_spi_probe()

PATCH In review Wei Yongjun 2 participants 2 messages Feb 22, 2019 – Feb 26, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: sifive: Remove redundant dev_err call in sifive_spi_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/spi/spi-sifive.c | 1 -
 1 file changed, 1 deletion(-)
drivers/spi/spi-sifive.c +0 -1
index 961307c4a613..81c5a0363073 100644
@@ -310,7 +310,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	spi->regs = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(spi->regs)) {
-		dev_err(&pdev->dev, "Unable to map IO resources\n");
 		ret = PTR_ERR(spi->regs);
 		goto put_master;
 	}

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

maintainer
#1 lore raw

Applied "spi: sifive: Remove redundant dev_err call in sifive_spi_probe()" to the spi tree

The patch

spi: sifive: Remove redundant dev_err call in sifive_spi_probe()

has been applied to the spi tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

From daad4d2a0a60b0b2879e66194100b43c41e96ca9 Mon Sep 17 00:00:00 2001
From: Wei Yongjun <[email protected]>
Date: Fri, 22 Feb 2019 05:46:32 +0000
Subject: [PATCH] spi: sifive: Remove redundant dev_err call in
sifive_spi_probe()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/spi/spi-sifive.c | 1 -
 1 file changed, 1 deletion(-)
drivers/spi/spi-sifive.c +0 -1
index ebca3fc4d345..93ec2c6cdbfd 100644
@@ -310,7 +310,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	spi->regs = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(spi->regs)) {
-		dev_err(&pdev->dev, "Unable to map IO resources\n");
 		ret = PTR_ERR(spi->regs);
 		goto put_master;
 	}
Signature · 1 line
2.20.1