hab/caam: Fix compilation of caam driver when hab is disabled
The caam driver needs the variable habv4_need_rng_software_self_test,
but this is only declared when HABV4 is enabled. Instead of exporting
a variable rather provide a function to test if a software selftest
of the random number generator is needed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c9504d3 commit ea569a0afd6a2e9a84418cd18ddeaeefaa5eae39
@Sascha Hauer Sascha Hauer authored on 11 Apr 2019
Showing 3 changed files
View
drivers/crypto/caam/ctrl.c
View
drivers/hab/habv4.c
View
include/hab.h