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)
commit5b37689653cbe73d24760428c236feb15ccad2aa
treed58d3775c486ee7bc1ba5b1bb8edf87d3ab27bb5
parentf962eb46e7a9b98a58d2483f5eb216e738fec732
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