spi: cadence: Remove redundant dev_err call
PATCH 1/1 spi: cadence: 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-cadence-xspi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/spi/spi-cadence-xspi.c +1 -3
@@ -565,10 +565,8 @@ static int cdns_xspi_probe(struct platform_device *pdev) res =platform_get_resource_byname (pdev,IORESOURCE_MEM ,"sdma" ); cdns_xspi->sdmabase =devm_ioremap_resource (dev, res); -if (IS_ERR (cdns_xspi->sdmabase)) { -dev_err (dev,"Failed to remap SDMA address\n" ); +if (IS_ERR (cdns_xspi->sdmabase))return PTR_ERR (cdns_xspi->sdmabase); - } cdns_xspi->sdmasize =resource_size (res); cdns_xspi->auxbase =devm_platform_ioremap_resource_byname (pdev,"aux" );
Signature · 1 line
2.17.1
Mark Brown
maintainerQuoted 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: cadence: Remove redundant dev_err call
commit: 9671847f93a5291ad85f88210fb56e1a946b757b
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