提交 60bcf265 编写于 作者: W weiyongjun \(A\) 提交者: Herbert Xu

crypto: stm32 - remove redundant dev_err call in stm32_cryp_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: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NFabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 235699e2
......@@ -1052,10 +1052,8 @@ static int stm32_cryp_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
cryp->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(cryp->regs)) {
dev_err(dev, "Cannot map CRYP IO\n");
if (IS_ERR(cryp->regs))
return PTR_ERR(cryp->regs);
}
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册