]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - dispose of IRQ mapping only after IRQ is freed
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 4 Sep 2019 02:35:07 +0000 (19:35 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 9 Sep 2019 13:48:22 +0000 (23:48 +1000)
commit0c3db54a90daf8557ade32934acd8139f80f3b9b
tree14cf4a360c7f6b5831c39b74fc2ec8aa49e248da
parent57440d76aebf628223c7577a69e8d9b7b17138bf
crypto: caam - dispose of IRQ mapping only after IRQ is freed

With IRQ requesting being managed by devres we need to make sure that
we dispose of IRQ mapping after and not before it is free'd (otherwise
we'll end up with a warning from the kernel). To achieve that simply
convert IRQ mapping to rely on devres as well.

Fixes: f314f12db65c ("crypto: caam - convert caam_jr_init() to use devres")
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Horia Geantă <horia.geanta@nxp.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Iuliana Prodan <iuliana.prodan@nxp.com>
Cc: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c