diff options
author | Qiheng Lin <linqiheng@huawei.com> | 2021-03-31 17:32:44 +0800 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-04-01 19:56:52 +0200 |
commit | b11a188aef6d19fe3ca505831d9c627ef683476f (patch) | |
tree | 90a4ad6313e08c586dc1287b84812d930013406d /drivers/memory | |
parent | e004c3e67b6459c99285b18366a71af467d869f5 (diff) | |
download | linux-b11a188aef6d19fe3ca505831d9c627ef683476f.tar.gz linux-b11a188aef6d19fe3ca505831d9c627ef683476f.tar.bz2 linux-b11a188aef6d19fe3ca505831d9c627ef683476f.zip |
memory: fsl-corenet-cf: Remove redundant dev_err call in ccf_probe()
There is a error message within devm_ioremap_resource already, so remove
the dev_err call to avoid redundant error message.
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20210331093244.3238-1-linqiheng@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/fsl-corenet-cf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/memory/fsl-corenet-cf.c b/drivers/memory/fsl-corenet-cf.c index 0309bd5a1800..f8ea592c9cb5 100644 --- a/drivers/memory/fsl-corenet-cf.c +++ b/drivers/memory/fsl-corenet-cf.c @@ -192,10 +192,8 @@ static int ccf_probe(struct platform_device *pdev) } ccf->regs = devm_ioremap_resource(&pdev->dev, r); - if (IS_ERR(ccf->regs)) { - dev_err(&pdev->dev, "%s: can't map mem resource\n", __func__); + if (IS_ERR(ccf->regs)) return PTR_ERR(ccf->regs); - } ccf->dev = &pdev->dev; ccf->info = match->data; |