Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1446353
| From | Wei Yongjun <weiyj_lk@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH -next] mtd: atmel-quadspi: remove redundant dev_err call in atmel_qspi_probe() |
| Date | 2016-07-19 13:40 +0200 |
| Message-ID | <rWBxv-3r9-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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;
}
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[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
csiph-web