[PATCH] crypto/caam/jr : Unmap region obtained by of_iomap

From: Arvind Yadav
Date: Wed Sep 28 2016 - 06:33:03 EST


From: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>

Free memory mapping, if probe is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
---
drivers/crypto/caam/jr.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index a81f551..9e7f281 100644
--- a/drivers/crypto/caam/jr.c
+++ b/drivers/crypto/caam/jr.c
@@ -513,6 +513,7 @@ static int caam_jr_probe(struct platform_device *pdev)
error = caam_jr_init(jrdev); /* now turn on hardware */
if (error) {
irq_dispose_mapping(jrpriv->irq);
+ iounmap(ctrl);
return error;
}

--
1.7.9.5