crypto: omap-aes - Fix registration of algorithms
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 1 Jun 2016 08:56:02 +0000 (11:56 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 7 Jun 2016 10:41:52 +0000 (18:41 +0800)
commit3741bbb207f7b9e92ad3b878a30ccd1ddcdb8ac8
tree26539599039d606b22b58556fd27a5523abc48bf
parent0a7f330c12f2b3cab53b396d4dc369c2dcf272eb
crypto: omap-aes - Fix registration of algorithms

Algorithms can be registered only once. So skip registration of
algorithms if already registered (i.e. in case we have two AES cores
in the system.)

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c