OSDN Git Service

crypto: crypto4xx - shuffle iomap in front of request_irq
authorChristian Lamparter <chunkeey@gmail.com>
Fri, 22 Dec 2017 20:18:35 +0000 (21:18 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Jan 2018 07:43:02 +0000 (18:43 +1100)
commitb0a191cebea13c38f3a427180721f92d8e259b81
treeb0e90447c757b6b92cf86c8dd953157b8fe05685
parent6cd225cc5d8a6526b2bea41955882be55d4f109e
crypto: crypto4xx - shuffle iomap in front of request_irq

It is possible to avoid the ce_base null pointer check in the
drivers' interrupt handler routine "crypto4xx_ce_interrupt_handler()"
by simply doing the iomap in front of the IRQ registration.

This way, the ce_base will always be valid in the handler and
a branch in an critical path can be avoided.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c