spi/rockchip: remove redundant dev_err call in rockchip_spi_probe()
Subsystems (2)
PATCH 1/1 spi/rockchip: remove redundant dev_err call in rockchip_spi_probe()
From: Wei Yongjun <[email protected]>
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
--- drivers/spi/spi-rockchip.c | 1 - 1 file changed, 1 deletion(-)
drivers/spi/spi-rockchip.c +0 -1
@@ -585,7 +585,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; }
Mark Brown
maintainerPATCH 1/1 spi/rockchip: remove redundant dev_err call in rockchip_spi_probe()
Quoted 5 lines · On Sun, Jul 20, 2014 at 10:01:42PM +0800, weiyj_lk at 163.com wrote:
From: Wei Yongjun <[email protected]>
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140725/ccc27f5b/attachment-0001.sig>