mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
d438d94d64
commit
b411b1a0c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user