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

Forward devm_ioremap_resource() error code instead of returning
-ENOMEM.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk>
Fixes: f63601fd61 ("crypto: marvell/cesa - add a new driver for Marvell's CESA")
Cc: <stable@vger.kernel.org> # 4.2+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Boris BREZILLON 2016-03-17 10:47:10 +01:00 committed by Herbert Xu
parent b0ef51067c
commit dfe97ad30e
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ static int mv_cesa_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
cesa->regs = devm_ioremap_resource(dev, res); cesa->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(cesa->regs)) if (IS_ERR(cesa->regs))
return -ENOMEM; return PTR_ERR(cesa->regs);
ret = mv_cesa_dev_dma_init(cesa); ret = mv_cesa_dev_dma_init(cesa);
if (ret) if (ret)