提交 dfe97ad3 编写于 作者: B Boris BREZILLON 提交者: Herbert Xu

crypto: marvell/cesa - forward devm_ioremap_resource() error code

Forward devm_ioremap_resource() error code instead of returning
-ENOMEM.
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: NRussell King - ARM Linux <linux@arm.linux.org.uk>
Fixes: f63601fd ("crypto: marvell/cesa - add a new driver for Marvell's CESA")
Cc: <stable@vger.kernel.org> # 4.2+
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 b0ef5106
......@@ -420,7 +420,7 @@ static int mv_cesa_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
cesa->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(cesa->regs))
return -ENOMEM;
return PTR_ERR(cesa->regs);
ret = mv_cesa_dev_dma_init(cesa);
if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册