Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1446353 > unrolled thread

[PATCH -next] mtd: atmel-quadspi: remove redundant dev_err call in atmel_qspi_probe()

Started byWei Yongjun <weiyj_lk@163.com>
First post2016-07-19 13:40 +0200
Last post2016-07-19 13:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] mtd: atmel-quadspi: remove redundant dev_err call in atmel_qspi_probe() Wei Yongjun <weiyj_lk@163.com> - 2016-07-19 13:40 +0200

#1446353 — [PATCH -next] mtd: atmel-quadspi: remove redundant dev_err call in atmel_qspi_probe()

FromWei Yongjun <weiyj_lk@163.com>
Date2016-07-19 13:40 +0200
Subject[PATCH -next] mtd: atmel-quadspi: remove redundant dev_err call in atmel_qspi_probe()
Message-ID<rWBxv-3r9-7@gated-at.bofh.it>
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 drivers/mtd/spi-nor/atmel-quadspi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mtd/spi-nor/atmel-quadspi.c b/drivers/mtd/spi-nor/atmel-quadspi.c
index 47937d9..f0c04bb 100644
--- a/drivers/mtd/spi-nor/atmel-quadspi.c
+++ b/drivers/mtd/spi-nor/atmel-quadspi.c
@@ -615,7 +615,6 @@ static int atmel_qspi_probe(struct platform_device *pdev)
 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_base");
 	aq->regs = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(aq->regs)) {
-		dev_err(&pdev->dev, "missing registers\n");
 		err = PTR_ERR(aq->regs);
 		goto exit;
 	}
@@ -624,7 +623,6 @@ static int atmel_qspi_probe(struct platform_device *pdev)
 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_mmap");
 	aq->mem = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(aq->mem)) {
-		dev_err(&pdev->dev, "missing AHB memory\n");
 		err = PTR_ERR(aq->mem);
 		goto exit;
 	}

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web