From: Wei Yongjun Date: Sun, 20 Jul 2014 14:01:42 +0000 (+0800) Subject: spi/rockchip: remove redundant dev_err call in rockchip_spi_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e6fafee0289222105c40ddd7293da19b043122c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 05e18e9af813..47c9168f18b2 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -600,7 +600,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); rs->regs = devm_ioremap_resource(&pdev->dev, mem); if (IS_ERR(rs->regs)) { - dev_err(&pdev->dev, "Failed to map SPI region\n"); ret = PTR_ERR(rs->regs); goto err_ioremap_resource; }