Skip to content

Commit

Permalink
spi/rockchip: remove redundant dev_err call in rockchip_spi_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Jul 25, 2014
1 parent c495014 commit 4e6fafe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-rockchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e6fafe

Please sign in to comment.