Commit f08fc4ee authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Greg Kroah-Hartman

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

commit dfe97ad3 upstream.

Forward devm_ioremap_resource() error code instead of returning
-ENOMEM.
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: default avatarRussell King - ARM Linux <linux@arm.linux.org.uk>
Fixes: f63601fd ("crypto: marvell/cesa - add a new driver for Marvell's CESA")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 75efb5fe
...@@ -420,7 +420,7 @@ static int mv_cesa_probe(struct platform_device *pdev) ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment