spi: aspeed: Remove redundant dev_err call
Subsystems (3)
PATCH 1/1 spi: aspeed: Remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message.
--- drivers/spi/spi-aspeed-smc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/spi/spi-aspeed-smc.c +1 -3
@@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); aspi->regs =devm_ioremap_resource (dev, res); -if (IS_ERR (aspi->regs)) { -dev_err (dev,"missing AHB register window\n" ); +if (IS_ERR (aspi->regs))return PTR_ERR (aspi->regs); - } res =platform_get_resource (pdev,IORESOURCE_MEM ,1 ); aspi->ahb_base =devm_ioremap_resource (dev, res);
Signature · 1 line
2.17.1
Cédric Le Goater
maintainerPATCH 1/1 spi: aspeed: Remove redundant dev_err call
Quoted 4 lines · Shang XiaoJing
devm_ioremap_resource()prints error message in itself. Remove thedev_errcall to avoid redundant error message.Signed-off-by Shang XiaoJing <[email protected]>
Thanks,
C.
Quoted 20 lines
--- drivers/spi/spi-aspeed-smc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/spi/spi-aspeed-smc.c +1
-3@@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); aspi->regs =devm_ioremap_resource (dev, res); -if (IS_ERR (aspi->regs)) { -dev_err (dev,"missing AHB register window\n" ); +if (IS_ERR (aspi->regs))return PTR_ERR (aspi->regs); - } res =platform_get_resource (pdev,IORESOURCE_MEM ,1 ); aspi->ahb_base =devm_ioremap_resource (dev, res);
Mark Brown
maintainerPATCH 1/1 spi: aspeed: Remove redundant dev_err call
In reply to Shang XiaoJingQuoted 4 lines · Shang XiaoJing
devm_ioremap_resource()prints error message in itself. Remove thedev_errcall to avoid redundant error message.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: aspeed: Remove redundant dev_err call
commit: 04e0456f778de550a14d222d1a9ae0625511244d
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