crypto: keembay - Remove redundant dev_err calls

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
YueHaibing 2021-04-07 22:18:18 +08:00 committed by Herbert Xu
parent bea47077ec
commit 6dab374673
2 changed files with 2 additions and 6 deletions

View File

@ -1623,10 +1623,8 @@ static int kmb_ocs_aes_probe(struct platform_device *pdev)
}
aes_dev->base_reg = devm_ioremap_resource(&pdev->dev, aes_mem);
if (IS_ERR(aes_dev->base_reg)) {
dev_err(dev, "Failed to get base address\n");
if (IS_ERR(aes_dev->base_reg))
return PTR_ERR(aes_dev->base_reg);
}
/* Get and request IRQ */
aes_dev->irq = platform_get_irq(pdev, 0);

View File

@ -1192,10 +1192,8 @@ static int kmb_ocs_hcu_probe(struct platform_device *pdev)
}
hcu_dev->io_base = devm_ioremap_resource(dev, hcu_mem);
if (IS_ERR(hcu_dev->io_base)) {
dev_err(dev, "Could not io-remap mem resource.\n");
if (IS_ERR(hcu_dev->io_base))
return PTR_ERR(hcu_dev->io_base);
}
init_completion(&hcu_dev->irq_done);