Skip to contentSkip to conversation

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

PATCH New weiyj_lk at 163.com 2 participants 2 messages Jul 20, 2014 – Jul 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 72fb287..171353b 100644
@@ -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;
 	}
maintainer
#1 lore raw

PATCH 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_resource already, so remove the dev_err call 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>