]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - Check for CAAM block presence before registering with crypto layer
authorRuchika Gupta <ruchika.gupta@freescale.com>
Mon, 7 Jul 2014 05:12:12 +0000 (10:42 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jul 2014 08:50:33 +0000 (16:50 +0800)
commitab933e68ca2fc548eb1ade5b5507b5cd73e124e0
tree6cf62a6f27b022c33f9d2029692730cbba750958
parent51a9a86cb8e749ac65712312ced1c489e8d6eb07
crypto: caam - Check for CAAM block presence before registering with crypto layer

The layer which registers with the crypto API should check for the presence of
the CAAM device it is going to use.  If the platform's device tree doesn't have
the required CAAM node, the layer should return an error and not register the
algorithms with crypto API layer.

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamrng.c