Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/rockchip: remove redundant dev_err call in rockchip_spi_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Wei Yongjun and committed by
Mark Brown
4e6fafee c4950143

-1
-1
drivers/spi/spi-rockchip.c
··· 600 600 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 601 601 rs->regs = devm_ioremap_resource(&pdev->dev, mem); 602 602 if (IS_ERR(rs->regs)) { 603 - dev_err(&pdev->dev, "Failed to map SPI region\n"); 604 603 ret = PTR_ERR(rs->regs); 605 604 goto err_ioremap_resource; 606 605 }