crypto: atmel - Check for clk_prepare_enable() return value
Orabug:
23330840
[ Upstream commit
9d83d299549d0e121245d56954242750d0c14338 ]
clk_prepare_enable() can fail so add a check for this and
return the error code if it fails.
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit
617c364c29ce8eefa9f0122fd01829adc2ac5d83)
Signed-off-by: Dan Duval <dan.duval@oracle.com>