crypto: atmel-aes - propagate error from atmel_aes_hw_version_init()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 17 Dec 2015 16:48:37 +0000 (17:48 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Dec 2015 10:19:50 +0000 (18:19 +0800)
commitaab0a39b281e9a26ae991f0737f2fa6f710d0dab
treee38c1b7e2b3bc43f39bae2d383d15454e8de3d55
parent7f1cbbc5145fcd6f357cf8932e1d5410777f4d65
crypto: atmel-aes - propagate error from atmel_aes_hw_version_init()

Before this patch atmel_aes_hw_version_init() had no returned value.
However it calls atmel_aes_hw_init(), which may fail. So check the
returned code of atmel_aes_hw_init() and propagate error if needed.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c