crypto: caam - pair irq map and dispose in the same function
authorCristian Stoica <cristian.stoica@freescale.com>
Thu, 22 Jan 2015 14:00:48 +0000 (16:00 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jan 2015 00:34:25 +0000 (11:34 +1100)
commitc6bf62e4f34f0f490ecbba184e57a8c6808b3cb1
treee18131c2d688f526c8d807b08b08b5ba7cce4a6f
parent490f702286bc03a2f1538b39c4a19420ce624a73
crypto: caam - pair irq map and dispose in the same function

irq_dispose_mapping is not called on all error paths from caam_jr_init.
This takes care of several clean-up issues by performing resource
clean-up and allocation at the same level.

Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c