aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto/aspeed
diff options
context:
space:
mode:
authorShang XiaoJing2022-09-23 18:01:59 +0800
committerHerbert Xu2022-09-30 13:59:13 +0800
commitb411b1a0c8bddd470fc8c3457629ac25a168cba0 (patch)
tree77beb1c5aa98758f90ca91e0c44b911c5e782d93 /drivers/crypto/aspeed
parentd438d94d6483c379935d94a7dcc2d1bf9cdf0803 (diff)
crypto: aspeed - Remove redundant dev_err call
devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message. Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/aspeed')
-rw-r--r--drivers/crypto/aspeed/aspeed-hace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/aspeed/aspeed-hace.c b/drivers/crypto/aspeed/aspeed-hace.c
index f7f1d33defb1..656cb92c8bb6 100644
--- a/drivers/crypto/aspeed/aspeed-hace.c
+++ b/drivers/crypto/aspeed/aspeed-hace.c
@@ -123,10 +123,8 @@ static int aspeed_hace_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, hace_dev);
hace_dev->regs = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(hace_dev->regs)) {
- dev_err(&pdev->dev, "Failed to map resources\n");
+ if (IS_ERR(hace_dev->regs))
return PTR_ERR(hace_dev->regs);
- }
/* Get irq number and register it */
hace_dev->irq = platform_get_irq(pdev, 0);