summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-04-08 14:15:13 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-05-10 11:44:33 +0300
commitc054de10ae5d6d8b3f417cb8d29e67a7cd686f36 (patch)
tree7efd7f17d27b8c5cd9b92e9eff04fc0dd191f5d8
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-c054de10ae5d6d8b3f417cb8d29e67a7cd686f36.tar.xz
mtd: plat-ram: remove redundant dev_err call in platram_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210408111514.1011020-3-yukuai3@huawei.com
-rw-r--r--drivers/mtd/maps/plat-ram.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c
index 0bec7c791d17..cedd8ef9a6bf 100644
--- a/drivers/mtd/maps/plat-ram.c
+++ b/drivers/mtd/maps/plat-ram.c
@@ -127,7 +127,6 @@ static int platram_probe(struct platform_device *pdev)
info->map.virt = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(info->map.virt)) {
err = PTR_ERR(info->map.virt);
- dev_err(&pdev->dev, "failed to ioremap() region\n");
goto exit_free;
}