Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Qiheng Lin and committed by
Krzysztof Kozlowski
b11a188a e004c3e6

+1 -3
+1 -3
drivers/memory/fsl-corenet-cf.c
··· 192 192 } 193 193 194 194 ccf->regs = devm_ioremap_resource(&pdev->dev, r); 195 - if (IS_ERR(ccf->regs)) { 196 - dev_err(&pdev->dev, "%s: can't map mem resource\n", __func__); 195 + if (IS_ERR(ccf->regs)) 197 196 return PTR_ERR(ccf->regs); 198 - } 199 197 200 198 ccf->dev = &pdev->dev; 201 199 ccf->info = match->data;