]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - improve clock initialization
authorGregory CLEMENT <gregory.clement@bootlin.com>
Tue, 13 Mar 2018 16:48:41 +0000 (17:48 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Mar 2018 15:39:59 +0000 (23:39 +0800)
commit390d920b494e22bd2ee4f3dfd6229e3238d64535
treed58d3775c486ee7bc1ba5b1bb8edf87d3ab27bb5
parent3a72dcb9257e51e60b973bd179e7dfaa4045a752
crypto: inside-secure - improve clock initialization

The clock is optional, but if it is present we should managed it. If
there is an error while trying getting it, we should exit and report this
error.

So instead of returning an error only in the -EPROBE case, turn it in an
other way and ignore the clock only if it is not present (-ENOENT case).

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c