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: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
235699e2a9
commit
60bcf2652e
@@ -1052,10 +1052,8 @@ static int stm32_cryp_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
cryp->regs = devm_ioremap_resource(dev, res);
|
cryp->regs = devm_ioremap_resource(dev, res);
|
||||||
if (IS_ERR(cryp->regs)) {
|
if (IS_ERR(cryp->regs))
|
||||||
dev_err(dev, "Cannot map CRYP IO\n");
|
|
||||||
return PTR_ERR(cryp->regs);
|
return PTR_ERR(cryp->regs);
|
||||||
}
|
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user